User forums > Using Code::Blocks

wx-config not found

(1/1)

tavares:
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

balgior:
Hello,

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


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

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
--- End quote ---

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!

tavares:
I am using:
            gcc (GCC) 4.0.2 -
            Ubuntu  5.10.
            Code::Blocks 1.0rc2

   RTavares

mandrav:

--- Quote from: 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

--- End quote ---

Please switch to a nightly build (development snapshot). If you search the forums, you 'll find a .deb for ubuntu 5.10.

takeshimiya:
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.
--- End quote ---

Navigation

[0] Message Index

Go to full version