|
Basic linker problems with Allegro |
Damian Grove
Member #6,758
January 2006
|
It's been many years since I compiled anything that uses Allegro. I have some code that's a little over a decade old now, and it's dependent on 4.4.2. I have barely touched C/C++ in the past decade, so I'm finding myself a bit rusty on things. I have Code::Blocks and MinGW setup, but I cannot for the life of me get this code to compile. I get Allegro-related messages, presumably from the linker: "undefined reference to 'clear_bitmap'" ... etc. I have the following Linker settings:
I have the following Search directories: [COMPILER]
[LINKER]
I can't think of anything else I need to add. Any suggestions? Get into awesome with Saxman! |
Dizzy Egg
Member #10,824
March 2009
|
I haven't used A4 for a looong time, but when linking statically with A5, I set this at the top of my linker settings: -DALLEGRO_STATICLINK (In "Other linker settings").
---------------------------------------------------- |
Damian Grove
Member #6,758
January 2006
|
I forgot about that, thanks! However, it doesn't seem to impact my build at all. I get the very same series of errors. Get into awesome with Saxman! |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Damian Grove - I invite you to try my A4.4.3 binaries. The compiler I used is here : The binaries for Allegro 4.4.3 and the binaries for Eagle Classic (works with above) are here : https://bitbucket.org/bugsquasher/unofficial-allegro-5-binaries/downloads/ UPDATE https://www.allegro.cc/files/attachment/613288 -static -lalleggl -ljpgalleg -lloadpng -llogg -lalleg-debug-static -lvorbis -lvorbisenc -lvorbisfile -logg -lpng16 -lzlibstatic -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
-static-libstdc++ -static -lalleggl -ljpgalleg -lloadpng -llogg -lalleg-debug-static -lvorbis -lvorbisenc -lvorbisfile -logg -lpng16 -lzlibstatic -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound -static-libstdc++ -static-libgcc My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|