News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Error with linking Code::Blocks with Allegro.

Started by Octavarium, March 21, 2014, 09:11:10 PM

Previous topic - Next topic

Octavarium

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.

stahta01

#1
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Quote from: Octavarium on March 21, 2014, 09:11:10 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...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]