Code::Blocks Forums

User forums => Help => Topic started by: Octavarium on March 21, 2014, 09:11:10 pm

Title: Error with linking Code::Blocks with Allegro.
Post by: Octavarium on March 21, 2014, 09:11:10 pm
Hi, I have an issue trying to link Allegro 5 with Code::Blocks. All was working until a game I created crashed and I was forced to reboot my pc (I'm using Ubuntu 12.04 by the way). Here's my build log:
Quote
-------------- Build: Debug in allegroTest ---------------

Linking console executable: bin/Debug/allegroTest
/usr/bin/ld: cannot find -l-L/usr/lib -Wl,-Bsymbolic-functions -lalleg -lm -lXxf86vm -lXcursor -lXpm -lXext -lX11 -lpthread -ldl
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
 

Any help would be appreciated, I'm unbelievably frustrated with this at the moment.
Title: Re: Error with linking Code::Blocks with Allegro.
Post by: stahta01 on March 21, 2014, 09:37:44 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

You posted the "build messages" this is not as useful as "Build log" contents.

Tim S.
Title: Re: Error with linking Code::Blocks with Allegro.
Post by: oBFusCATed on March 21, 2014, 09:59:55 pm
/usr/bin/ld: cannot find -l-L/usr/lib -Wl,-Bsymbolic-functions -lalleg -lm -lXxf86vm -lXcursor -lXpm -lXext -lX11 -lpthread -ldl
See the text in bold, this is causing you the problem. You just have to find it in the build options...