Mail Archives: djgpp/1998/06/15/00:03:06
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 -