Qt and boost: can't get it to work

I can not get boost to work with Qt... Can anyone tell me what's wrong with this??


here is the .pro file:

1
2
3
4
5
6
7
8
INCLUDEPATH += C:/Qt/Tools/mingw48_32/include/
DEPENDPATH += C:/MinGW/lib/

LIBS += -LC:\MinGW\lib

LIBS += -llibboost_system \
	-llibboost_filesystem
#include this line 


And it spits out that it can't find "-llibboost_system" and "-llibboost_filesystem".
-lboost_system -lboost_filesystem
but the filenames are:

libboost_system.a
libboost_filesystem.a

respectively. Should I still try that?
Use the suggestions that naraku gave you. The convention on Unix/Linux is to name the library files LibWHATEVER.a, and the corresponding linker option is -lWHATEVER.

It's weird, but it's the way it is.
Last edited on
@IWishIKnew
IIRC you use nuwen mingw, if that's correct you will probably run into more problems. Nuwen is only 64 bit now and the Qt libs are built 32 bit. Your options will probably be to either rebuild Qt with nuwen our boost with Qt creators built in mingw.
Actually, I got them to work.

I added MinGW/Boost build as the compiler (and apparently you can only choose your "kit" on creating of the project, and can't change it after) and it still pulls the Qt libraries, so I can use Boost, Qt and MinGW.
Topic archived. No new replies allowed.