Create boost library with specific name

I am trying to compile my program that uses the boost library with MSVC 2013 and I get the error:

Cannot open input file boost_iostreams-vc120-1.57.lib

I have already increased the number of attempts several times with many combinations of options (eg "bjam toolset = msvc --build-type = complete"), but I don't have boost_iostreams-vc120-1.57.lib in my scene directory. I have libraries named libboost_iostreams.lib, libboost_iostreams-vc-120-mt-1_57.lib and others. Also I don't want to change any settings in MSVC because my project was generated by CMake.

So the question is, how do I create the boost_iostreams-vc120-1.57.lib library with Windows?

Thanks for the answers and sorry for my english

+3


source to share


1 answer


-mt

The suffix denotes a multithreading assembly, which is always enabled for MSVC. Single-threaded CRT was dropped in VS 2008 or even 2005, so both your code and boost will be multi-threaded. If you don't want to change the build configuration, you can simply remove the "-mt" suffix from the library names. But since boost has support for MSVC autostart ( #pragma comment (lib, "...")

in header files), it might be better to make an exception for MSVC and not mess with accelerating libraries at all.



+1


source







All Articles