[Qt-interest] How to add path of Boost?

Chris Meyer cmeyer1969+qt at gmail.com
Wed Nov 18 17:10:00 CET 2009


Your INCLUDEPATH includes both a relative path and an absolute path. Why?

In our setup, we include a relative path.

Also, did you run qmake once you changed the paths? Sometimes that
dependency is not picked up automatically.

If all else fails, look at the compile command that is generated in
Compile Output (I'm assuming you're using Qt Creator). It shouldn't be
hard to see what the problem is.

Also, you'll probably want to add the following CONFIG if you're using boost:

CONFIG += no_keywords

On Wed, Nov 18, 2009 at 7:54 AM, Matthias Pospiech
<matthias.pospiech at gmx.de> wrote:
> I have boost in the directory
> E:/Daten/Dev/SVN/library/source/boost_1_40_0
>
> If I add
> INCLUDEPATH += ..\boost_1_40_0 E:/Daten/Dev/SVN/library/source/boost_1_40_0
>
> to the .pro file it is still not found with
> #include <boost/regex.hpp>
>
> So how do I add a system libary such as boost to a .pro project?
>
> Matthias
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list