Friday 31 May 2013

Qt4 and Boost On Windows


Instructions

The Qt4 binary on Windows conflicts with the boost pro binaries. The key problem is the -Zc:wchar_t compiler option

I used Microsoft Visual C++ 2010 Express

Download the source code


In "mkspecs\win32-msvc2010\qmake.conf" change:
QMAKE_CFLAGS            = -nologo -Zm200 -Zc:wchar_t-
to
QMAKE_CFLAGS            = -nologo -Zm200 -Zc:wchar_t

Then configure (is an .exe), nmake release. Done! Then add the includes and library into your own application project.

Helpful Links