I simply added INCLUDEPATH += -I C:\boost

Now its able to find all the header files except file path starting with
boost/

Should I add C:\boost to system path?

Thanks,

Jothy


On Fri, Jul 23, 2010 at 12:39 PM, André Pönitz <andre.poen...@nokia.com>wrote:

> On Friday 23 July 2010 11:53:31 ext Jothy wrote:
> > Hi Guys,
> >
> > I am trying to use boost header files with a simple Qt project in Qt
> creator. By right clicking "Add existing files" in the headers (in the
> project files view), I added few boost headers.
> >
> > And the pro file look like this
> >
> > QT += core gui
> >
> > TARGET = untitled8
> >
> > TEMPLATE = app
> >
> > SOURCES += main.cpp\
> >
> >         widget.cpp
> >
> >
> > HEADERS  += widget.h \
> >
> >     ../../Boost/multi_array/view.hpp \
> > [..]
> > FORMS    += widget.ui
> >
> >
> > Now, how should I add in the widget.cpp file. It does not show any of the
> hpp files after typing #include<, I even tried #include<Boost/
>
> You should not list the boost headers in HEADERS, but add a suitable path
> to INCLUDEPATH, like
>
>  INCLUDEPATH += $$PWD/../../Boost
>
> or
>  INCLUDEPATH += $$PWD/../..
>
> Andre'
> _______________________________________________
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
_______________________________________________
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to