Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: tavares on March 20, 2006, 01:33:47 am

Title: wx-config not found
Post by: tavares on March 20, 2006, 01:33:47 am
Hi:

I am just starting using code::Blocks - A linux (ubuntu) instalation.

I create a wxWidgets App, with the main.cpp and main.h template. 

After pressing "build" I got the following error:

g++: `wx-config: File or dir not found
cc1plus: error: unrecognized command line option "-fcflags`"

 wx-config is in /usr/local/bin , and this path is also in Directories/compiler settings.

   Can someone help me to solve this error?

       Tks
             Roberto Tavares
Title: Re: wx-config not found
Post by: balgior on March 20, 2006, 01:50:37 am
Hello,

I'm not a linux user but i think I had this problem :

Quote
cc1plus: error: unrecognized command line option "-fcflags`"

and many others, using an old version of gcc. (v 3.2.3 i think it was) and disappeared when upgraded to v3.4.5.

I don't know about:

Quote
g++: `wx-config: File or dir not found

However, in order to get some help by someone who knows what's going on maybe you should tell which version of gcc you're using. This was as much helpful as i could be...  :(

Good luck!
Title: Re: wx-config not found
Post by: tavares on March 20, 2006, 02:59:30 am
I am using:
            gcc (GCC) 4.0.2 -
            Ubuntu  5.10.
            Code::Blocks 1.0rc2

   RTavares
Title: Re: wx-config not found
Post by: mandrav on March 20, 2006, 08:32:45 am
I am using:
            gcc (GCC) 4.0.2 -
            Ubuntu  5.10.
            Code::Blocks 1.0rc2

   RTavares

Please switch to a nightly build (development snapshot). If you search the forums, you 'll find a .deb for ubuntu 5.10.
Title: Re: wx-config not found
Post by: takeshimiya on March 20, 2006, 08:35:33 am
As a note to anyone using RC2, this can be solved as:

Quote
Go to Settings->Compiler->Other and set the build mode to "GNU make". Backticks work with it.