0
我想在Visual Studio 2013中使用Qt。我安裝了Qt版本5.0.2。然後,我將Qt添加到Visual Studio中。我將路徑定義爲Qt 5.0.2版本msvc2012_64。創建項目後,我構建瞭解決方案。它給出了該錯誤:無法在Visual Studio 2013中添加Qt
1>qtmaind.lib(qtmain_win.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1700' doesn't match value '1800' in debar.obj
1>c:\Users\sercan\documents\visual studio 2013\Projects\Debar\x64\Debug\\Debar.exe : fatal error LNK1319: 1 mismatches detected
它與編譯器版本有關嗎?
您已經下載了一個使用VS 2012(版本爲「1700」)編譯的Qt版本。這不能與用VS 2013(版本'1800')編譯的應用程序鏈接。下載一個用VS 2013編譯的Qt版本(例如[Qt 5.5](http://download.qt.io/official_releases/qt/5.5/5.5.0/qt-opensource-windows-x86-msvc2013_64-5.5.0 。可執行程序))。 –