User forums > Using Code::Blocks

Work on Ubuntu PPC, but have some problem...

(1/1)

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

--- End code ---

How could I fix it??

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

Thanks.

takeshimiya:
The wx-config utility usually comes in a called wx-common package.

dbtsai:
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`"
--- End code ---

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

Der Meister:
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.)

Navigation

[0] Message Index

Go to full version