Active Topics

 


Reply
Thread Tools
Posts: 124 | Thanked: 213 times | Joined on Dec 2009
#1
Whenever I need to use another API, I use the Project->Properties->C/C++ Paths & Symbols dialog to add an include path to the relevant headers.

However, every time I hit recompile, it still spits out an error saying it cannot find the include file!

I looked at the Makefile and there was no -I entry for the new path, so I manually added it and all was well. Of course, qmake erases this whenever I do a completely clean build.

Anyone else have this problem? Where can I put an "include path" directive that qmake will see and incorporate into the Makefile?

I spend more time fighting ESBox than writing code sometimes....

UPDATE : The answer is to read and inwardly digest the qmake manual - you need to add an INCLUDEPATH reference in your .pro file

There are many more useful things you can do with qmake.

Last edited by Dak; 2010-01-27 at 15:29.
 
Posts: 5 | Thanked: 2 times | Joined on Feb 2010
#2
I was trying to do the same thing but in my project folder i could not find any *.pro file. I created a C++ Maemo project. So how can I add include paths to C++ projects?
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:58.