Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: dbtsai on December 12, 2005, 06:27:20 pm

Title: Work on Ubuntu PPC, but have some problem...
Post by: dbtsai on December 12, 2005, 06:27:20 pm
hi, all

After some hard try, I could compile with unicode on my ibook on ubuntu 5.10,
but I open a wx simple example, I obtain the following error.

Code
--------------------------------------------------------------------------------
Switching to target: default
Compiling: main.cpp
g++: `wx-config: No such file or directory
cc1plus: error: unrecognized command line option "-fcflags`"
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

How could I fix it??

By the way, the font in the message section is too small, could I modify it??

Thanks.
Title: Re: Work on Ubuntu PPC, but have some problem...
Post by: takeshimiya on December 12, 2005, 06:52:26 pm
The wx-config utility usually comes in a called wx-common package.
Title: Re: Work on Ubuntu PPC, but have some problem...
Post by: dbtsai on December 12, 2005, 07:58:07 pm
Well, I have the lib.

In command line, I could use

g++ `wx-config --libs --cxxflags  --unicode=yes` -O3   main.cpp

to compile my code. That is to say, the path is correct.  :D

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

is the main problem?? what does the flags mean?? My gcc seem doesnt have this flag.

Title: Re: Work on Ubuntu PPC, but have some problem...
Post by: Der Meister on December 12, 2005, 08:07:18 pm
Try running "wx-config --libs --cxxflags  --unicode=yes" in a console and look at the output. For myself, I get not the desired output. wx-config tells me how to use it instead of returning command-line parameters for gcc ;)
(Note: For me wx-config corresponds to wxGTK-2.4. Using wx-config-2.6 - for wxGTK-2.6.1 - gives a different error message. It says that it could not find a configuration for unicode - which seems to be correct as I compiled wxGTK for ansi instead of unicode.)