Mail Archives: djgpp/2001/09/24/10:03:04
> Allegro needs to be built and installed before you can use it. Read
> the installation instructions in the Allegro distribution, they
> explain how to do that.
This is what it says in the Allegro.txt file
All the Allegro functions, variables, and data structures are defined in
allegro.h. You should include this in your programs, and link with
liballeg.a. To do this you should:
- Put the following line at the beginning of all C or C++ files that use
Allegro:
#include <allegro.h>
- If you compile from the command line or with a makefile, add '-lalleg'
to the end of the gcc command, eg:
gcc foo.c -o foo.exe -lalleg
- If you are using Rhide, go to the Options/Libraries menu, type 'alleg'
into the first empty space, and make sure the box next to it is
checked.
I am using Rhide to compile and run the demo.c file. So I put that in the
Option/Libraries menu. When I compile, I get this error:
'..allegro/demo/demo.c<28> Error: allegro.h: No such file or directory
<ENOENT>'
- Raw text -