Mail Archives: djgpp/1997/02/08/04:08:29
Gunter Ohrner writes:
>When compiling it to an .o-file, everything works fine.
>But when I try to "MAKE" an EXE-file out of it, the compiler just says
>play.c(Linenumber) Error: undefined reference to '...'
You have to link the library file, liballeg.a, into your executable:
that's where the code for all the Allegro functions is found. In Rhide,
go to the Options/Libraries dialog, type 'alleg' into the first empty
space, and make sure the box next to it is checked. The linker might
then complain about not being able to find liballeg.a: if this happens,
copy the file from your Allegro dir into your djgpp\lib directory
(depending how recent your version of Allegro is, the Allegro makefile
might have already done this for you).
/*
* Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
* Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'.
*/
- Raw text -