I have found a strange problem with Qt Creator and boost library.
I have a simple "Hello World!" program in the Qt Creator. So far so good. But I need to use the boost::filesystem library.
So I add:
to the source code and
INCLUDEPATH += C:/boost
LIBS += C:/boost/stage/lib/libboost_filesystem-mgw45-mt-d-1_46_1.a
LIBS += C:/boost/stage/lib/libboost_system-mgw45-mt-d-1_46_1.a
to the .pro file
Building the application for the "release" target is OK, no errors. Result executable executes and works well.
But for the "debug" target it doesn't. I got the error:
The process could not be started: %1 is not a valid Win32 application.
Debugging can be started but it ignores all breakpoints and terminates immediately.
Don't you know what could case this problem?
If I don't have #include <boost/filesystem.hpp> in the source code, the "debug" executable can be executed, but when I include boost/filesystem, it immediately becomes invalid win32 application. However "release" executable works well in both cases.
I tried to create the same simple application in Code::Blocks, just to test whether included boost libraries are compiled correctly and yes, there's no problem with both release and debug build targets, all works fine. So it doesn't seem to be a problem with boost libraries.
I'm using Qt SDK 1.1, Qt Creator 2.2 installed later, Windows 7 Ultimate x64
[EDIT: code formatting, please wrap in @-tags, Volker]