User forums > Using Code::Blocks
Include Directory
RLovelett:
I'm new to the whole code blocks app on linux (Ubuntu) (ran it once on Win XP two years ago for a C course I took). Anyways, now I'm running it on my linux machine and I'm trying to get it to compile wxWidgets. The problem is that I cannot seem to get the application to understand where my wxWidgets library is (/usr/include/wx-2.8), it keeps telling me
error: wx/app.h : No such file or directory.
I've tried adding the directory to the Linker settings of Link libraries. I hit add and then typed that path above. Still same errors. Do I have to declare it as a Environment Variable? If so how. Any help would be greatly appreciated, thanks. :D
Ryan
sipickles:
error: wx/app.h : No such file or directory.
This is a compiler error, nothing to do with the linker :)
I had exactly the same problem and added these to the SEARCH DIRECTORIES :
Some progree
/usr/include/wx-2.8
/usr/lib/wx/include/base-ansi-debug-2.8
Some progress but now my problem has changed to:
In constructor 'wxBusyCursorSuspender::wxBusyCursorSuspender()':
'wxIsBusy' was not declared in this scope
hth
JGM:
--- 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.
sipickles:
If I do wx-config in a terminal, I get an error - not found.
If I do wx-config --libs, I get a list of packages which support this command, but they are installed (I think!)
What package installs wx-config?
JGM:
--- Quote from: sipickles on December 06, 2007, 07:19:07 pm ---What package installs wx-config?
--- End quote ---
http://wiki.wxpython.org/InstallingOnUbuntuOrDebian
this is the official up to date repository of wxwidgets
Navigation
[0] Message Index
[#] Next page
Go to full version