User forums > Using Code::Blocks
Include Directory
RLovelett:
--- Quote from: JGM on December 06, 2007, 01:56:20 pm ---
--- Quote from: RLovelett on December 06, 2007, 02:56:02 am ---error: wx/app.h : No such file or directory.
--- End quote ---
You could try adding this: `wx-config --cflags` on compiler settings->Other options and this:
`wx-config --libs` on Linker Settings->Other linker options
if it doesn't work try running that command on the terminal to see if you got any output -> wx-config --cflags, if you don't get any output then you don't have wxwidgets correctly installed, use the wxwidgets repositories, is more easy that compiling it and installing your self.
--- End quote ---
I've run both of these commands in the command line, all is well. The problem is that I now have a new compile error.
--- Quote ---Compiling: HelloWorldApp.cpp
g++: wx-config: No such file or directory
cclplus: error: unrecognized command line option "-fcflags"
--- End quote ---
I don't have anything I've added to either the compiler settings or linker settings that says "-fcflags", where is that coming from?
TDragon:
You need to add the backticks around the wx-config command: `wx-config --libs`, `wx-config --cflags` (note the ``).
RLovelett:
--- Quote from: TDragon on December 07, 2007, 07:48:43 pm ---You need to add the backticks around the wx-config command: `wx-config --libs`, `wx-config --cflags` (note the ``).
--- End quote ---
That did it thanks so much. I'll see if I cannot figure out what is causing my g++: no input files error.
Navigation
[0] Message Index
[*] Previous page
Go to full version