News:

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

Main Menu

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

Started by dbtsai, December 12, 2005, 06:27:20 PM

Previous topic - Next topic

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.


--------------------------------------------------------------------------------
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.

takeshimiya

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

dbtsai

#2
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

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

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.)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.