简体   繁体   中英

VS2013 trying to link agains boost vc1100

I'm upgrading an existing solution from VS2008 to VS2013. We use the boost 1_55 libraries. One project keeps trying to link against a vc110 version of boost; but when I build boost with the VS2013 command line compiler, I get vc120 boost libraries (of course).

My boost auto_link.hpp file has

#  elif defined(BOOST_MSVC) && (BOOST_MSVC < 1800)

     // vc11:
#    define BOOST_LIB_TOOLSET "vc110"

#  elif defined(BOOST_MSVC)

     // vc12:
#    define BOOST_LIB_TOOLSET "vc120"

in it, as recommended at Visual Studio 2013 (vs120) asks for wrong boost libraries ; so what else can I try?

I would start by making sure that your application and its dependencies were all rebuilt using Visual Studio 2013. Having any of your applications dependencies built with your previous compiler will cause this if they use boost.

Note: Not only is this important you should always avoid using more than 1 version of Visual Studio in the same application. Having dlls linked to previous versions of Visual Studio can cause random looking heap corruption because in this case you have more than 1 independent heap also there may be other incompatibilities with the CRT.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM