visual c++ - Build boost.thread - lib file not found -
i trying build boost.thread library visual studio 9.0. used bjam build lib-files:
bjam toolset=msvc-9.0 variant=release threading=multi link=shared
the compilation succeeded , got plenty of .lib , .dll files under boost/stage/lib. added include path , above lib path visual studio 9.0.
but when try compile program, following error:
libboost_thread-vc90-mt-s-1_49.lib cannot opened.
the lib file created build has name:
boost_thread-vc90-mt-1_49.lib
i tried rename file match expected name, visual studio still cannot find file. seems filename beeing seaarched depends on project option "c/c++ / code generation / runtime library". need option "multithreaded /mt".
what doing wrong?
thank in advance.
you're trying link statically crt, dynamically - boost. not idea, if insist, should define boost_all_dyn_link macro. better option select /md in project options, or set "link=static" when building boost.
Comments
Post a Comment