Springe zum Inhalt

Here's is a small guide about how to use Qt 4.7.3 with Visual Studio 2010 and static linking. With this approach you can generate a single exe without dependencies to any Qt dlls or msvcr100.dll Prerequisites: Install Visual Studio 2010 Install Visual Studio 2010 SP1 Download Qt Source: http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.3.zip Download and install the Qt VS 2010 Plugin http://qt.nokia.com/downloads/visual-studio-add-in Download and install this patch for VS2010: http://support.microsoft.com/kb/2280741 Now proceed with this simple steps: 1) Extract the Qt source code to C:\qt\4.7.3.static 2) Add the folder above to your environment variables QTDIR = C:\qt\4.7.3.static Also append the qt location to your path variable 3) Change the target configuration.… Weiterlesen

This error appears if you mix lib/obj files some which are built as release and some which are built as debug. Check your library dependencies. Often lib/obj files for debug purposes end with an 'd'. error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' Just for the curiosity: _ITERATOR_DEBUG_LEVEL = 0 (in release mode) _ITERATOR_DEBUG_LEVEL = 1 (in release mode if _SECURE_SCL is defined) _ITERATOR_DEBUG_LEVEL = 2 (in debug mode)… Weiterlesen