Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Undefined references in A5.2 installation | Win 10, CodeBlocks/MinGW

This thread is locked; no one can reply to it. rss feed Print
Undefined references in A5.2 installation | Win 10, CodeBlocks/MinGW
BitCruncher
Member #11,279
August 2009
avatar

I'm statically linking Allegro with all library files included in the 1.5.0 release of the A5 dependencies which are:

libdumb.a
libFLAC.a
libfreetype.a
libjpeg.a
libogg.a
libopus.a
libopusfile.a
libphysfs.a
libpng16.a
libtheoradec.a
libvorbis.a
libvorbisfile.a
libzlib.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
avatar

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

BitCruncher
Member #11,279
August 2009
avatar

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
avatar

Go to: