LNK2038: mismatch detected for '_MSC_VER': value '1700' doesn't match value '1800' in main.obj



  • I am getting this error when I try to build my project, I am using Qt Creator(3.2.0) based on Qt 5.3.1(MSVC 2013,64-bit). I have Visual Studio 2013 installed on my machine so I changed the compiler to "Microsoft Visual C++ Compiler 12.0 (amd64)" and the Qt version as "Qt 54.4.0 (qt5.4.0-x64-msvc2013-compact)". I installed QT 5.4.0 which is 64-bit on windows and I am giving this version in my qt creator. Now when I try to compile my project it gives me so many errors which day:

    tango.lib(devapi_attr.obj):-1: error: LNK2038: mismatch detected for '_MSC_VER': value '1700' doesn't match value '1800' in main.obj

    Tango is the external librariy that I am using.all the libraries that I am using are compiled for 64-bit machines. I looked into many links and was not able to figure out what exactly was wrong with my configuration.Could you let me know how this could be resolved.



  • Hi,

    It seems that tango.lib is not compiled with your current compiler, hence the "_MSC_VER":http://msdn.microsoft.com/en-us/library/b0084kay.aspx mismatch.



  • Thanks for your reply. Do you know how I can compile the library with my current compiler?



  • [quote author="avallabh88" date="1421436399"]Thanks for your reply. Do you know how I can compile the library with my current compiler?
    [/quote]

    If you have the source...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.