Error LNK2038: A mismatch was found for '_MSC_VER': the value '1600' does not match the value '1700' in the file moc_testqt5.obj

I tried to compile a simple GUI application using Qt5.0.1 in Visual Studio 2012, but the following error occurred:

qtmaind.lib(qtmain_win.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in moc_testqt5.obj 

How to solve this problem? thanks!

+4
source share
1 answer

You may be using libraries for VS 2010 in VS 2012. If you want to build your program with VS 2012, you will need to create or create libraries for VS 2012.

+1
source

All Articles