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

Reply via email to