Regex linker problem with VC7.1

I built boost 1.31.0 using bjam "-sTOOLS=VC7.1", and the static library names that are generated for regex do not match those generated by its header files. For example, one actual library name is: libboost_regex-VC7.1-mt-gd-1_31.lib Whereas, because of the "#pragma comment(lib, ..." stuff, the linker expects: libboost_regex-vc71-mt-gd-1_31.lib There's no header macro to disable automatic linking, so renaming the library is the easiest workaround. Keith MacDonald

Sorry, please ignore. I see that this is the same problem as that reported
by Jeff Flinn. The names matched after rebuilding with bjam
"-sTOOLS=vc7.1".
Keith MacDonald
"Keith MacDonald"
I built boost 1.31.0 using bjam "-sTOOLS=VC7.1", and the static library names that are generated for regex do not match those generated by its header files. For example, one actual library name is:
libboost_regex-VC7.1-mt-gd-1_31.lib
Whereas, because of the "#pragma comment(lib, ..." stuff, the linker expects:
libboost_regex-vc71-mt-gd-1_31.lib
There's no header macro to disable automatic linking, so renaming the library is the easiest workaround.
Keith MacDonald

I built boost 1.31.0 using bjam "-sTOOLS=VC7.1", and the static library names that are generated for regex do not match those generated by its header files. For example, one actual library name is:
libboost_regex-VC7.1-mt-gd-1_31.lib
Whereas, because of the "#pragma comment(lib, ..." stuff, the linker expects:
libboost_regex-vc71-mt-gd-1_31.lib
There's no header macro to disable automatic linking, so renaming the library is the easiest workaround.
BOOST_ALL_NO_LIB disables auto-linking. But see also http://lists.boost.org/MailArchives/boost/msg60334.php John.
participants (2)
-
John Maddock
-
Keith MacDonald