Unable to create libboost-thread-vc71-mt-sgd-1_31.lib

Hi all, We included the header files of boost in VC++ 7.1 During linking the program automatically tries to link against the static library libboost-thread-vc71-mt-sgd-1_31.lib. However, "bjam install" does not create this library. Though it creates the dll version of the thread library (i.e. thread*.dll and thread*.lib) We tried various combinations such as following to get the static library built. 1) bjam --with-thread -sBUILD="debug <runtime-link>static <threading>single" install 2) bjam --with-thread -sBUILD="debug static single" install 3) bjam -sBUILD="debug static single" install But none of the above worked. We also tried to enable "BOOST_ALL_NO_LIB" macro so that we can specify the dynamic version of the library manually. It did not work. We are using the dynamic version of runtime library. The question I have is, how to build the library "libboost-thread-vc71-mt-sgd-1_31.lib" Any help would be highly appreciated. I have tried every possible thing and seem to be going nowhere with this issue. Thanks, Diwakar

During linking the program automatically tries to link against the static library libboost-thread-vc71-mt-sgd-1_31.lib.
That's a multithreaded, debug, *static* runtime library, but hold on, Boost.Threads in Boost-1.32 doesn't support static runtimes does it, only dll's I believe?
However, "bjam install" does not create this library. Though it creates the dll version of the thread library (i.e. thread*.dll and thread*.lib)
Correct, switch your code generation options to use the dll runtime and the error should go away. If this doesn't help come back with more information: Boost version etc. HTH, John.
participants (2)
-
John Maddock
-
Shetty, Diwakar