Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in mathutil.obj during Windows build from source

mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in mathutil.obj during Windows build from source

Scheduled Pinned Locked Moved Solved General and Desktop
mismatch detect
3 Posts 2 Posters 14.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    buckler
    wrote on last edited by
    #1

    Hello,
    I am upgrading from 5.5.1 to 5.6. I have downloaded and unzipped the source and have used the following commands prior to nmake:
    @
    CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
    ..\qt-everywhere-enterprise-src-5.6.0\configure -release -nomake tests -nomake examples -skip qtwebchannel -skip qt3D -skip qtsensors -skip qtserialport -skip qtwayland -skip qtandroidextras -icu -platform win32-msvc2015
    nmake
    @

    After about 5 minutes, I get the following error:

    ...(a variety of apparently good output, then:)
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /DEF:C:\Qt\qt-everywhere-enterprise-src-5.6.0\qtbase\src\3rdparty\angle\src\libGLESv2\libGLESv2.def /MANIFEST:embed /OUT:........\lib\libGLESv2.dll @C:\Users\buckler\AppData\Local\Temp\nmD35F.tmp
    preprocessor.lib(Preprocessor.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in mathutil.obj
    preprocessor.lib(DiagnosticsBase.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in mathutil.obj
    preprocessor.lib(DirectiveHandlerBase.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in mathutil.obj
    preprocessor.lib(Token.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in mathutil.obj
    msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: void __cdecl std::_Container_base0::_Orphan_all(void)" (?_Orphan_all@_Container_base0@std@@QEAAXXZ) already defined in preprocessor.lib(Preprocessor.obj)
    Creating library ........\lib\libGLESv2.lib and object ........\lib\libGLESv2.exp
    preprocessor.lib(Token.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,unsigned __int64)" (??3@YAXPEAX_K@Z)
    preprocessor.lib(Preprocessor.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,unsigned __int64)" (??3@YAXPEAX_K@Z)
    preprocessor.lib(DiagnosticsBase.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,unsigned __int64)" (??3@YAXPEAX_K@Z)
    preprocessor.lib(DirectiveHandlerBase.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,unsigned __int64)" (??3@YAXPEAX_K@Z)
    preprocessor.lib(Lexer.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,unsigned __int64)" (??3@YAXPEAX_K@Z)
    preprocessor.lib(Preprocessor.obj) : error LNK2019: unresolved external symbol __std_terminate referenced in function "int public: __cdecl pp::Preprocessor::~Preprocessor(void)'::1'::dtor$0" (?dtor$0@?0???1Preprocessor@pp@@QEAA@XZ@4HA)
    ........\lib\libGLESv2.dll : fatal error LNK1120: 2 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.EXE"' : return code '0x460'
    Stop.

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hmm, you're using MSVC 2013 but specifying MSVC 2015 on the command line, try change to: ... platform win32-msvc2013

      1 Reply Last reply
      1
      • B Offline
        B Offline
        buckler
        wrote on last edited by
        #3

        uhh... embarrassment sigh... it is actually the other way around. Based on what you said, I see that I copied "Microsoft Visual Studio 12.0" incorrectly... it is 2015 I am actually using! I will fix in the morning and re-run. Thank you!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved