LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Include path in kdevelop (https://www.linuxquestions.org/questions/programming-9/include-path-in-kdevelop-432746/)

t_t_h 04-07-2006 01:08 PM

Include path in kdevelop
 
A newbie here. I'm using KDevelop 3.2 to do a "hello word" program using Wx widget. The wizard generates a cpp file contains #include <wx/wx.h>. Compiler complaints it can't find it. If I include the full path #include <usr/include/wx-2.6/wx/wx.h>, then all worked. How to you set the "include path" to point to "usr/include/wx-2.6" in kdevelop? thx.

Mara 04-07-2006 05:04 PM

Automake manager (if you're using it, if not, settings of your building system)->right click on subproject->Options->Include dirs
Here you can add the right directory to be searched for includes.

xhi 04-08-2006 09:42 AM

wxwidgets has a configure program, wx-config.. if you give the compiler the arg
Code:

`wx-config --cxxflags`
it will give the compiler all the config info it needs

edit> you can enter this info under the project options, configure options, c/c++ preproc flags..

t_t_h 04-10-2006 01:08 PM

got it... Thanks Mara and xhi.


All times are GMT -5. The time now is 11:07 PM.