Mail Archives: djgpp/1997/05/20/14:09:39
> gxx file.cc -o file.exe -lalleg
> after having put allegro.h in the INCLUDE directory and liballeg.a in
> the LIB directory. What I don't know is how to do this for several
> files, or how to do this in RHide. I've tried "Build All" but it
> produced the error messages "undefined reference" for every allegro
> routine, (and some of the other routines I defined in one of the *.h
> files, but that's probably another problem) and before you ask,yes,
> every file that contains allegro routines also contains the line
> #include <allegro.h>
Typically, more a multi-file project the actual compile passes will
look like this.
gcc -c file1.c
gcc -c file2.c
gcc -c file3.c
gcc -c ...
then
ld -o my.exe file1.o file2.o file3.o ... -lalleg
In rhide, you specify this by using the libraries menu from Options.
Just put alleg in one of the spots and check the box next to it.
Andrew
- Raw text -