News:

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

Main Menu

[SOLVED] Executing a script for linking

Started by Rush, February 25, 2006, 06:38:56 PM

Previous topic - Next topic

Rush

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.

Game_Ender

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. 

mandrav

Quotebe warned that Code::Blocks is very shakey on linux

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

Game_Ender

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.

yop

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

Thanks for advice, it works in SVN version.