boost
boost copied to clipboard
boost linking in MSVC against default library
I have been linking boost library from CMD but MSVC linked standard library and boost library remains unused. Followed steps: cl /F 10000000 /TP /EHsc random_speed.cpp /I C:\Users\zen2-\MS_COMPILER\memcpy_boost_18062019\install\include\boost-1_70\ /link /LIBPATH:C:\Users\zen2-\MS_COMPILER\memcpy_boost_18062019\install\lib\ libboost_random-vc142-mt-x64-1_70.lib libboost_filesystem-vc142-mt-x64-1_70.lib. Please help me out.
Hi @mayadav1 -
I'm not certain what you are asking.
Hi @mjcaisse
I was trying to link boost library using MSVC from CMD but MSVC is resolving symbols from system library in place of from boost library. Used steps are as follows : cl /F 10000000 /TP /EHsc random_speed.cpp /I C:\Users\zen2-\MS_COMPILER\memcpy_boost_18062019\install\include\boost-1_70\ /link /LIBPATH:C:\Users\zen2-\MS_COMPILER\memcpy_boost_18062019\install\lib\ libboost_random-vc142-mt-x64-1_70.lib libboost_filesystem-vc142-mt-x64-1_70.lib.
VS2019 processes standard/system library in place of boost library. After following changes in VS2019. BOOST's header files Path : project properties -> VC++ directories-> include directories. BOOST's library PATH : project properties -> VC++ directories-> libraries directories. BOOST's libraries PATH : Linker->General->Additional library directories. Ideally It should process "libboost_filesystem-vc142-mt-x64-1_70.lib" but in build order log no such linked library. I am suspecting that it is resolving calls from standard library. Please correct me in case wrong.