[regex] 1.35 missing lib on Windows?

I built 1.35 on Windows XP using MS Visual Studio .NET 2003 using
bjam --toolset=msvc-7.1 install
No errors in the build.
Including

Larry wrote:
I built 1.35 on Windows XP using MS Visual Studio .NET 2003 using
bjam --toolset=msvc-7.1 install
No errors in the build.
Including
in a cpp file compiles OK using IDE but the link fails missing libboost_regex-vc71-mt-gd-1_35.lib and the lib is not present in the "install" lib directory. The project is being built with compiler option /MDd. Is this a Boost build failure or should I have specified something else to get the lib created or to use a different lib? Anyone know?
You either use dynamic linking and didn't specify the BOOST_ALL_DYN_LIB macro or you use static linking and the bjam default settings only build the shared libraries. Quoting from a post from 06/04/2008: The files with "lib" prefix are static libraries whereas the ones without "lib" are used for dynamic linking (DLLs). First decide, what you want to use, then build the appropriate files. with bjam use the option link=static or link=shared. Have a look at http://www.codeproject.com/KB/tips/Building_boost_libraries.aspx That may help you. Regards, Rainer

Actually, it turns out at 1.35 the build was changed to not build the debug
libs by default. Changing the bjam command line to
bjam --toolset=msvc-7.1 --build-type=complete install
built all of the libs including the debug ones (thanks John Maddock). I
missed in the doc where this release changed the behavior from prior
releases to not build the debug builds by default.
Thanks.
Larry
"Rainer Thaden"
Larry wrote:
I built 1.35 on Windows XP using MS Visual Studio .NET 2003 using
bjam --toolset=msvc-7.1 install
No errors in the build.
Including
in a cpp file compiles OK using IDE but the link fails missing libboost_regex-vc71-mt-gd-1_35.lib and the lib is not present in the "install" lib directory. The project is being built with compiler option /MDd. Is this a Boost build failure or should I have specified something else to get the lib created or to use a different lib? Anyone know? You either use dynamic linking and didn't specify the BOOST_ALL_DYN_LIB macro or you use static linking and the bjam default settings only build the shared libraries. Quoting from a post from 06/04/2008:
The files with "lib" prefix are static libraries whereas the ones without "lib" are used for dynamic linking (DLLs). First decide, what you want to use, then build the appropriate files. with bjam use the option link=static or link=shared.
Have a look at http://www.codeproject.com/KB/tips/Building_boost_libraries.aspx That may help you.
Regards,
Rainer

Larry wrote:
I built 1.35 on Windows XP using MS Visual Studio .NET 2003 using
bjam --toolset=msvc-7.1 install
No errors in the build.
Including
in a cpp file compiles OK using IDE but the link fails missing libboost_regex-vc71-mt-gd-1_35.lib and the lib is not present in the "install" lib directory. The project is being built with compiler option /MDd. Is this a Boost build failure or should I have specified something else to get the lib created or to use a different lib? Anyone know?
Sigh, I really wish we hadn't made that change, but now bjam only builds a dll-release variant by default, which isn't much use when using MSVC in debug mode :-( Use: bjam --build-type=complete install toolset=msvc To build all the possible variants. bjam --help Will give you a full list of available options. John.
participants (3)
-
John Maddock
-
Larry
-
Rainer Thaden