The other issue I can think of is static linking. If you are static linking, you need to define ALLEGRO_STATICLINK. You can do that either in your program before including allegro.h:
#define ALLEGRO_STATICLINK #include <allegro.h> Or if you have multiple files, define it on the compilation command line with –DALLEGRO_STATICLINK. From: Allegro-developers [mailto:[email protected]] On Behalf Of Elias Pschernig Sent: May 20, 2016 9:17 PM To: [email protected] Subject: Re: [AD] More source code that doesn't compile... Are you linking your libraries in the right order? Post the complete command you use for linking. On Fri, May 20, 2016 at 10:58 PM, Andrew Robinson <[email protected] <mailto:[email protected]> > wrote: I'm getting a whole slew of errors here and I don't know why. I'm using Code::Blocks, it compiles okay, but then craps out when it tries to link the obj file into an executable. Basically it isn't finding a bunch of functions. Example: obj\Release\examp.o:examp.c:(.text+0xf8): undefined reference to `file_select_ex' obj\Release\examp.o:examp.c:(.text+0x2d0): undefined reference to `centre_dialog' obj\Release\examp.o:examp.c:(.text+0x2dd): undefined reference to `do_dialog' obj\Release\examp.o:examp.c:(.text+0x329): undefined reference to `alert' I am linked to every single .h file and .a file that exists in Allegro, so how could it possibly not work? Maybe there is a missing library? Is it versioning? I hate programs that give me no feedback. _______________________________________________ Allegro-developers mailing list [email protected] <mailto:[email protected]> https://mail.gna.org/listinfo/allegro-developers
_______________________________________________ Allegro-developers mailing list [email protected] https://mail.gna.org/listinfo/allegro-developers
