Author Topic: Work on Ubuntu PPC, but have some problem...  (Read 3948 times)

dbtsai

  • Guest
Work on Ubuntu PPC, but have some problem...
« 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.

takeshimiya

  • Guest
Re: Work on Ubuntu PPC, but have some problem...
« Reply #1 on: December 12, 2005, 06:52:26 pm »
The wx-config utility usually comes in a called wx-common package.

dbtsai

  • Guest
Re: Work on Ubuntu PPC, but have some problem...
« Reply #2 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.

« Last Edit: December 12, 2005, 08:01:09 pm by dbtsai »

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Work on Ubuntu PPC, but have some problem...
« Reply #3 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.)
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.