|
Undefined references in A5.2 installation | Win 10, CodeBlocks/MinGW |
BitCruncher
Member #11,279
August 2009
|
I'm statically linking Allegro with all library files included in the 1.5.0 release of the A5 dependencies which are: libdumb.a and the main Allegro library of course But I'm still getting undefined references. Here's one: C:\Programming\Allegro5\lib\liballegro_monolith-debug-static.a(wsystem.c.obj)||In function `win_initialize':| C:\dev\allegro_winpkg\universal\allegro\src\win\wsystem.c|196|undefined reference to `__imp_timeBeginPeriod'| Maybe I'm missing some libraries?
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
You have to link to the windows libraries. They are : -ldsound -lgdiplus -luuid -lkernel32 -lwinmm -lpsapi -lopengl32 -lglu32 -luser32 -lcomdlg32 -lgdi32 -lshell32 -lole32 -ladvapi32 -lws2_32 -lshlwapi -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 |
BitCruncher
Member #11,279
August 2009
|
New errors now. Looks like something related to DirectX, which I have installed already. ..\..\..\Allegro5\lib\liballegro_monolith-debug-static.a(d3d_display_formats.cpp.obj)||In function `_al_d3d_generate_display_format_list':| C:\dev\allegro_winpkg\universal\allegro\src\win\d3d_display_formats.cpp|49|undefined reference to `_Unwind_Resume'|
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
You're not using the same compiler that was used to build the dependencies. They have to match exactly. 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 |
|