User forums > Help

Linux Error "No Target! You should use wx-config program for compilation flags!"

<< < (2/2)

physnoct:
For a c++ project using wx-widgets, it seems that the `wx-config --cflags` should be `wx-config --cxxflags` instead.
I had the same problem, and making that change in the compiler options helped it compile further.

JP

gintasdx:
Thanks James. That solved my problems by compiling simple WxWidgets demo. You also need to link a
libwx_gtk2u_core-2.8 library.

VonZorch:
I had the same problem.  When I put 'wx-config --cxxflags' in compiler other options, I got an invalid command line option error.  What I did was copied the output of it from the terminal to compiler other options.  This got my project  to compile farther.

stahta01:

--- Quote from: VonZorch on December 14, 2013, 05:14:21 am ---I had the same problem.  When I put 'wx-config --cxxflags' in compiler other options, I got an invalid command line option error.  What I did was copied the output of it from the terminal to compiler other options.  This got my project  to compile farther.

--- End quote ---

You do realize those are supposed to be back ticks NOT the normal single tick/quote!

Tim S.

floatingCloud:

--- Quote from: physnoct on July 18, 2011, 02:44:21 am ---For a c++ project using wx-widgets, it seems that the `wx-config --cflags` should be `wx-config --cxxflags` instead.
I had the same problem, and making that change in the compiler options helped it compile further.

JP

--- End quote ---
That worked for me too. Thanks :)

Navigation

[0] Message Index

[*] Previous page

Go to full version