[SOLVED] Linking a project compiled with mingw : trouble with boost libs
Hello,
I am using QT4.8.3 with mingw 4.6. I have compiled boost 1.52 with mingw and I got in my lib directory of boost the lib "libboost_system-mgw46-mt-1_52.a" I need.
In my project i added :
LIBS += -L"F:\boost_1_52_0\lib" -lboost_system-mgw46-mt-1_52
However qmake adds automatically in the Makefile : -llibboost_system-vc90-mt which doesn't exist as I compiled boost with mingw and not msvc. Il would like to know if there is a way to remove it.
If in my directory I copy the library libboost_system-mgw46-mt-1_52.a to liblibboost_system-vc90-mt.a the linking goes well. The error comes only from what qmake added automatically.
Thanks for your help,
Francois
Re: Linking a project compiled with mingw : trouble with boost libs
did you build qt with vc? Do you have QMAKESPEC in your environment? In other words, what have you done that would make qmake want to choose vc linking options?
Re: Linking a project compiled with mingw : trouble with boost libs
Thanks for your help
When checking again the Qt conf and looking for the QMAKESPEC I found out that somewhere else in the .pro file there was another LIBS += with this library name... :-/
Everything works fine now !
Francois