Author Topic: [SOLVED] Executing a script for linking  (Read 5006 times)

Rush

  • Guest
[SOLVED] Executing a script for linking
« on: February 25, 2006, 06:38:56 pm »
I'm using CodeBlocks 1.0RC2 on Gentoo Linux 2005.1. My problem is, I can't get C::B to execute the allegro-config script as linker argument, needed by Allegro library (http://alleg.sourceforge.net).
The script supplies a few linker arguments. It's located in /usr/bin, and I try to use it by adding `allegro-config --libs` to linker commands (_not_ the library list). I get:

g++: `allegro-config: No such file or directory

Everything runs smooth when compiled from command line, though. I tried replacing the script reference with its output:

-L/usr/lib -Wl,--export-dynamic -lalleg-4.2.0 -lalleg_unsharable

But I get another error, "couldn't find -lalleg_unsharable" even though it is in /usr/lib, included in the linker directories.

Any help appreciated.
« Last Edit: February 26, 2006, 11:51:14 am by Rush »

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Executing a script for linking
« Reply #1 on: February 25, 2006, 08:22:25 pm »
You shuold try and compile the latest version from SVN.  I believe RC2 has backtic problems.  Make sure to disable Code Compleletion and be warned that Code::Blocks is very shakey on linux. 

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Executing a script for linking
« Reply #2 on: February 25, 2006, 10:07:22 pm »
Quote
be warned that Code::Blocks is very shakey on linux

Mind elaborating please?
Be patient!
This bug will be fixed soon...

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Executing a script for linking
« Reply #3 on: February 26, 2006, 04:12:48 am »
Recently I have been troubling with docking windows, possibly wxAUI related.  I got a crash while adjusting the docking windows that completely locked up X, I had to ctrl+alt+backspace to restart.  I will do a little more testing.  I shall also try to be better at reporting the bugs but I couldn't the stack trace for the docking crash because of the X lock up.

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: Executing a script for linking
« Reply #4 on: February 26, 2006, 04:29:38 am »
I didn't have any problems in linux lately and I've used C::B excesively (and wxSmith a couple of times). I'll wait for your reports also. (My PC is running Suse 9.3)
Life would be so much easier if we could just look at the source code.

Rush

  • Guest
Re: Executing a script for linking
« Reply #5 on: February 26, 2006, 11:50:52 am »
Thanks for advice, it works in SVN version.