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. Link error of _MSC_VER mismatch after build Qt 4.8.4 specifically for VS2012
Forum Updated to NodeBB v4.3 + New Features

Link error of _MSC_VER mismatch after build Qt 4.8.4 specifically for VS2012

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.4k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    justDance
    wrote on last edited by
    #1

    I followed http://stackoverflow.com/questions/12113400/compiling-qt-4-8-x-for-visual-studio-2012/14928303#14928303 to build Qt 4.8.4 specifically for VS2012, but got link error: qtmaind.lib(qtmain_win.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in main.obj

    I checked configure.cache under my qt folder, it is showing: -platform win32-msvc2012

    Does anybody know what is wrong here? Thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Code_ReaQtor
      wrote on last edited by
      #2

      You probably linked it to the wrong library(.dll/.lib) or objects(.obj) compiled with older versions of Visual Studio (VS2010, VS2008, etc).

      Please visit my open-source projects at https://github.com/Code-ReaQtor.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        justDance
        wrote on last edited by
        #3

        I tried two options:

        1. use command
          configure -mp -opensource -nomake demos -nomake examples -platform win32-msvc2012

        and 2) Go to mkspecs\win32-msvc2010. Open qmake.conf and change:
        QMAKE_COMPILER_DEFINES += _MSC_VER=1600 WIN32
        to:
        QMAKE_COMPILER_DEFINES += _MSC_VER=1700 WIN32
        then use command configure -mp -opensource -nomake demos -nomake examples -platform win32-msvc2010

        both gave me the same error. I can not see any wrong configuration in my build...

        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