Author Topic: Error with linking Code::Blocks with Allegro.  (Read 4330 times)

Octavarium

  • Guest
Error with linking Code::Blocks with Allegro.
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Error with linking Code::Blocks with Allegro.
« Reply #1 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

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

Tim S.
« Last Edit: March 21, 2014, 09:40:04 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Error with linking Code::Blocks with Allegro.
« Reply #2 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...
(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!]