Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Having trouble compiling

This thread is locked; no one can reply to it. rss feed Print
Having trouble compiling
jadoirecafe
Member #16,834
April 2018

I installed Allegro 5 on to MSYS but when I try to compile an Allegro program it gives me the following error:

 gcc display.c -o display.exe -static -lallegro_monolith -m64
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lallegro_monolith
collect2.exe: error: ld returned 1 exit status

What do I do? I don't quite know how to link the library and I'm quite new to this. I tried codeblocks and I still had the same error.???
HELP! :)

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: