C++ / Boost Filesystem - mismatch detected for '_MSC_VER': value '1700' doesn't match value '1600'

前端 未结 4 2000
自闭症患者
自闭症患者 2021-01-04 20:34

I\'m new to C++ and Boost. I\'m doing a small simple program to trying to learn the Boost Filesystem library. I have followed the directions to build the Boost libs. And now

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-04 20:58

    I was trying to compile the Teamcenter ITK C++ code and got the same error message:

    error LNK2038: mismatch detected for '_MSC_VER': value '1700' doesn't match value '1600' in itk_main.obj

    The workaround I did was searching for msvcprt.lib sitting somewhere in c: (used everything.exe to search, which can be found on voidtools.com)

    Opened that file in NP++ or text editor search for keyword _MSC_VER and changed the value /FAILIFMISMATCH:"_MSC_VER=1700" to /FAILIFMISMATCH:"_MSC_VER=1600"

    And yes, I was able to compile.

提交回复
热议问题