Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Compilation Issue with Allegro and MinGW - Linking Errors

This thread is locked; no one can reply to it. rss feed Print
Compilation Issue with Allegro and MinGW - Linking Errors
Nekronomik
Member #16,816
March 2018

Hello. I am currently facing issues while trying to compile a program using Allegro and MinGW on Code::Blocks. The linker is reporting several errors related to missing library files. The specific errors include:

||=== Build: Debug in test (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lallegro_monolith-debug-static: No such file or directory|
ld.exe||cannot find -lallegro_monolith-static: No such file or directory|
ld.exe||cannot find -lallegro_monolith-debug.dll: No such file or directory|
ld.exe||cannot find -lallegro_monolith.dll: No such file or directory|
ld.exe||cannot find -ljpeg: No such file or directory|
ld.exe||cannot find -ldumb: No such file or directory|
ld.exe||cannot find -lFLAC: No such file or directory|
ld.exe||cannot find -ltheora: No such file or directory|
ld.exe||cannot find -lvorbisfile: No such file or directory|
ld.exe||cannot find -lvorbis: No such file or directory|
ld.exe||cannot find -logg: No such file or directory|
ld.exe||cannot find -lphysfs: No such file or directory|
ld.exe||cannot find -lfreetype: No such file or directory|
ld.exe||cannot find -lpng16: No such file or directory|
ld.exe||cannot find -lzlibstatic: No such file or directory|
||error: ld returned 1 exit status|
||=== Build failed: 16 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|

Downloaded Allegro from https://github.com/liballeg/allegro5/releases/5.2.9.0/ , specifically the version allegro-i686-w64-mingw32-gcc-13.2.0-posix-dwarf-static-5.2.9.0.zip.
Downloaded https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/.
Added lib, include, and bin directories to search directories in Code::Blocks.
The error seems to be related to the linker not finding the specified Allegro and other libraries. I suspect there might be an issue with the static library names or the paths.

Could someone please provide guidance on resolving these linking errors? Any help would be greatly appreciated.

Niunio
Member #1,975
March 2002
avatar

It seems you didn't do the installation correctly. It seems you didn't installed the development files for a lot of stuff. Take a look to the "Installation in depth" wiki page.

-----------------
Current projects: Allegro.pas | MinGRo

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: