delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/15/00:03:06

Sender: nate AT cartsys DOT com
Message-ID: <35849804.703F10CF@cartsys.com>
Date: Sun, 14 Jun 1998 20:41:56 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: XSyphineX <xsyphinex AT aol DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: Question on allegro libraries...
References: <1998061418392700 DOT OAA22055 AT ladder01 DOT news DOT aol DOT com>

XSyphineX wrote:
> 
> How do I use the header files in allegro. Where do i put them to link them or
> compile the to my program? can someone help?

I'm quite sure the Allegro docs talk about this, but anyway...

"allegro.h" should be in $DJDIR/include, and "liballeg.a" in $DJDIR/lib,
where $DJDIR is your base DJGPP directory.  I think that Allegro
installs them there automatically when you compile it.  Then, to use
Allegro in a program, add

#include <allegro.h>

near the top of each source file that uses Allegro, and add `-lalleg' to
the command line when you link (create the executable).

-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019