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

前端 未结 4 2005
自闭症患者
自闭症患者 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 21:13

    solution mentioned by vignesh naidu worked for me.

    but not exactly msvcprt.lib

    look for the .lib file in the error msg.

    In my case, there was somefile.lib , i searched in the file explorer which gave two similar files in folder

    1)Release 2)Debug

    Opened somefile.lib in debug folder, opened in NP++ , found and replaced for ex: 1700 with 1900 (VS 2015) in my case

    recompiled, viola error gone.

    For brief explanation about why,how there are several technical reasons given by other users.

    PS: i was compiling code built in VS 2012 in VS2015 and 1700 is compiler version for VS 2012 , 1900 for VS 2015

提交回复
热议问题