c++ - Unable to link to static boost library using VS2012 while dynamic linking works fine -
i'm trying statically link boost library (boost/thread.hpp , boost/asio.hpp) project using vs2012 express. build target set windows xp (v110_xp) option multithreaded (/mt) (static linking). path boost libraries set correctly in project properties. (c:\boost\boost_1_54_0\stage\lib) nevertheless, following linker error:
error lnk1104: file "libboost_system-vc110-mt-s-1_54.lib" cannot opened.
this file indeed missing in library folder. when linking dynamically using multithreaded-dll (/md) option, links fine. build boost library using simple build method described here: http://www.boost.org/doc/libs/1_54_0/more/getting_started/windows.html#simplified-build-from-source
bootstrap .\b2
since apperently static library missing, called:
b2 --link=static
as describe here: http://www.boost.org/boost-build2/doc/html/bbv2/tutorial/linkage.html
this executes without error, not seem build new. missing? or vs looking file never exists? surprised handfull of hits when googling error , none of them helped.
invoke b2
following parameters:
link=static runtime-link=static
note there no hyphens before link
, runtime-link
.
Comments
Post a Comment