link error "can not open file "libboost_regex-vc80-mt-gd-1_36.lib"

I built boost_1.36_0 with vs2005, used command "bjam.exe --build-dir="D:\src\boost_1_36_0" --toolset=msvc --build-type=complete stage". Then i built a project using regex, and link error "can not open file "libboost_regex-vc80-mt-gd-1_36.lib" ". I check the stage diretory, found regex libs: libboost_regex-vc80-mt-s-1_36.lib libboost_regex-vc80-mt-s.lib libboost_regex-vc80-mt-sgd-1_36.lib libboost_regex-vc80-mt-sgd.lib libboost_regex-vc80-s-1_36.lib libboost_regex-vc80-s.lib libboost_regex-vc80-sgd-1_36.lib libboost_regex-vc80-sgd.lib There are no "libboost_regex-vc80-mt-gd-1_36.lib" here. How can i get the "libboost_regex-vc80-mt-gd-1_36.lib" ? PS. I have a machine which has vs2005 and vs2008 install, when i built boost on it, it always uses vs2008 to compile. How can i just use vs2005 buiding it? -- Best regards, PangYongQiang

ipangth wrote:
I built boost_1.36_0 with vs2005, used command "bjam.exe --build-dir="D:\src\boost_1_36_0" --toolset=msvc --build-type=complete stage". Then i built a project using regex, and link error "can not open file "libboost_regex-vc80-mt-gd-1_36.lib" ". I check the stage diretory, found regex libs: libboost_regex-vc80-mt-s-1_36.lib libboost_regex-vc80-mt-s.lib libboost_regex-vc80-mt-sgd-1_36.lib libboost_regex-vc80-mt-sgd.lib libboost_regex-vc80-s-1_36.lib libboost_regex-vc80-s.lib libboost_regex-vc80-sgd-1_36.lib libboost_regex-vc80-sgd.lib
There are no "libboost_regex-vc80-mt-gd-1_36.lib" here. How can i get the "libboost_regex-vc80-mt-gd-1_36.lib" ?
Somethings wrong with the build there, after bjam --toolset=msvc --build-type=complete --with-regex stage I see: boost_regex-vc80-mt-1_37.dll boost_regex-vc80-mt-1_37.lib boost_regex-vc80-mt-gd-1_37.dll boost_regex-vc80-mt-gd-1_37.lib boost_regex-vc80-mt-gd.lib boost_regex-vc80-mt.lib boost_regex-vc90-mt-1_36.dll boost_regex-vc90-mt-1_36.lib boost_regex-vc90-mt.lib libboost_regex-vc80-mt-1_37.lib libboost_regex-vc80-mt-gd-1_37.lib libboost_regex-vc80-mt-gd.lib libboost_regex-vc80-mt-s-1_37.lib libboost_regex-vc80-mt-s.lib libboost_regex-vc80-mt-sgd-1_37.lib libboost_regex-vc80-mt-sgd.lib libboost_regex-vc80-mt.lib libboost_regex-vc80-s-1_37.lib libboost_regex-vc80-s.lib libboost_regex-vc80-sgd-1_37.lib libboost_regex-vc80-sgd.lib libboost_regex-vc90-mt-1_36.lib libboost_regex-vc90-mt.lib where as you seem to only have libraries that correspond to the static msvc runtime, can you try invoking the above command and see if you get a few more libraries this time around? HTH, John.

2008/9/28 John Maddock <john@johnmaddock.co.uk>:
ipangth wrote:
I built boost_1.36_0 with vs2005, used command "bjam.exe --build-dir="D:\src\boost_1_36_0" --toolset=msvc --build-type=complete stage". Then i built a project using regex, and link error "can not open file "libboost_regex-vc80-mt-gd-1_36.lib" ". I check the stage diretory, found regex libs: libboost_regex-vc80-mt-s-1_36.lib libboost_regex-vc80-mt-s.lib libboost_regex-vc80-mt-sgd-1_36.lib libboost_regex-vc80-mt-sgd.lib libboost_regex-vc80-s-1_36.lib libboost_regex-vc80-s.lib libboost_regex-vc80-sgd-1_36.lib libboost_regex-vc80-sgd.lib
There are no "libboost_regex-vc80-mt-gd-1_36.lib" here. How can i get the "libboost_regex-vc80-mt-gd-1_36.lib" ?
Somethings wrong with the build there, after
bjam --toolset=msvc --build-type=complete --with-regex stage
I see:
boost_regex-vc80-mt-1_37.dll boost_regex-vc80-mt-1_37.lib boost_regex-vc80-mt-gd-1_37.dll boost_regex-vc80-mt-gd-1_37.lib boost_regex-vc80-mt-gd.lib boost_regex-vc80-mt.lib boost_regex-vc90-mt-1_36.dll boost_regex-vc90-mt-1_36.lib boost_regex-vc90-mt.lib libboost_regex-vc80-mt-1_37.lib libboost_regex-vc80-mt-gd-1_37.lib libboost_regex-vc80-mt-gd.lib libboost_regex-vc80-mt-s-1_37.lib libboost_regex-vc80-mt-s.lib libboost_regex-vc80-mt-sgd-1_37.lib libboost_regex-vc80-mt-sgd.lib libboost_regex-vc80-mt.lib libboost_regex-vc80-s-1_37.lib libboost_regex-vc80-s.lib libboost_regex-vc80-sgd-1_37.lib libboost_regex-vc80-sgd.lib libboost_regex-vc90-mt-1_36.lib libboost_regex-vc90-mt.lib
where as you seem to only have libraries that correspond to the static msvc runtime, can you try invoking the above command and see if you get a few more libraries this time around?
HTH, John. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
No, I try the above command but no more libraries. Here is the built output, seems somethings wrong, but i dont know why... warning: Graph library does not contain optional GraphML reader. note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the note: directories containing the Expat headers and libraries, respectively. warning: skipping optional Message Passing Interface (MPI) library. note: to enable MPI support, add "using mpi ;" to user-config.jam. note: to suppress this message, pass "--without-mpi" to bjam. note: otherwise, you can safely ignore this message. WARNING: No python installation configured and autoconfiguration failed. See http://www.boost.org/libs/python/doc/building.html for configuration instructions or pass --without-python to suppress this message and silently skip all Boost.Python targets Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (don't panic: this is a strictly optional feature). Skipping build of: ./stage <build>no in common properties Skipping build of: ./stage <build>no in common properties Skipping build of: ./stage <build>no in common properties Skipping build of: ./stage <build>no in common properties ...patience... ...found 666 targets... ...updating 24 targets... compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\debug\threading-multi\wc_regex_traits.obj wc_regex_traits.cpp libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C2375: ??std::allocator<_Ty>::allocator??: ?????????????????? with [ _Ty=unsigned short ] D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xmemory(120) : ??????std::allocator<_Ty>::allocator???????? with [ _Ty=unsigned short ] libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C3190: ????????????????????????std::allocator<_Ty>::allocator(void) throw()????????std::allocator<_Ty>???????????????????????????? with [ _Ty=unsigned short ] call "D:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-8.0\debug\threading-multi\wc_regex_traits.obj.rsp" ...failed compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\debug\threading-multi\wc_regex_traits.obj... compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\debug\threading-multi\usinstances.obj usinstances.cpp libs\regex\src\..\src\usinstances.cpp(55) : error C2375: ??std::allocator<_Ty>::allocator??: ?????????????????? with [ _Ty=unsigned short ] D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xmemory(120) : ??????std::allocator<_Ty>::allocator???????? with [ _Ty=unsigned short ] libs\regex\src\..\src\usinstances.cpp(55) : error C3190: ????????????????????????std::allocator<_Ty>::allocator(void) throw()????????std::allocator<_Ty>???????????????????????????? with [ _Ty=unsigned short ] call "D:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-8.0\debug\threading-multi\usinstances.obj.rsp" ...failed compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\debug\threading-multi\usinstances.obj... ...skipped <pbin.v2\libs\regex\build\msvc-8.0\debug\threading-multi>boost_regex-vc80-mt-gd-1_36.dll for lack of <pbin.v2\libs\regex\build\msvc-8.0\debug\threading-multi>wc_regex_traits.obj... ...skipped <pstage\lib>boost_regex-vc80-mt-gd-1_36.dll for lack of <pbin.v2\libs\regex\build\msvc-8.0\debug\threading-multi>boost_regex-vc80-mt-gd-1_36.dll... ...skipped <pbin.v2\libs\regex\build\msvc-8.0\debug\threading-multi>boost_regex-vc80-mt-gd-1_36.lib for lack of <pbin.v2\libs\regex\build\msvc-8.0\debug\threading-multi>wc_regex_traits.obj... ...skipped <pstage\lib>boost_regex-vc80-mt-gd-1_36.lib for lack of <pbin.v2\libs\regex\build\msvc-8.0\debug\threading-multi>boost_regex-vc80-mt-gd-1_36.lib... ...skipped <pstage\lib>boost_regex-vc80-mt-gd.lib for lack of <pstage\lib>boost_regex-vc80-mt-gd-1_36.lib... compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\threading-multi\wc_regex_traits.obj wc_regex_traits.cpp libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C2375: ??std::allocator<_Ty>::allocator??: ?????????????????? with [ _Ty=unsigned short ] D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xmemory(120) : ??????std::allocator<_Ty>::allocator???????? with [ _Ty=unsigned short ] libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C3190: ????????????????????????std::allocator<_Ty>::allocator(void) throw()????????std::allocator<_Ty>???????????????????????????? with [ _Ty=unsigned short ] call "D:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-8.0\release\threading-multi\wc_regex_traits.obj.rsp" ...failed compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\threading-multi\wc_regex_traits.obj... compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\threading-multi\usinstances.obj usinstances.cpp libs\regex\src\..\src\usinstances.cpp(55) : error C2375: ??std::allocator<_Ty>::allocator??: ?????????????????? with [ _Ty=unsigned short ] D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xmemory(120) : ??????std::allocator<_Ty>::allocator???????? with [ _Ty=unsigned short ] libs\regex\src\..\src\usinstances.cpp(55) : error C3190: ????????????????????????std::allocator<_Ty>::allocator(void) throw()????????std::allocator<_Ty>???????????????????????????? with [ _Ty=unsigned short ] call "D:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-8.0\release\threading-multi\usinstances.obj.rsp" ...failed compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\threading-multi\usinstances.obj... ...skipped <pbin.v2\libs\regex\build\msvc-8.0\release\threading-multi>boost_regex-vc80-mt-1_36.dll for lack of <pbin.v2\libs\regex\build\msvc-8.0\release\threading-multi>wc_regex_traits.obj... ...skipped <pstage\lib>boost_regex-vc80-mt-1_36.dll for lack of <pbin.v2\libs\regex\build\msvc-8.0\release\threading-multi>boost_regex-vc80-mt-1_36.dll... ...skipped <pbin.v2\libs\regex\build\msvc-8.0\release\threading-multi>boost_regex-vc80-mt-1_36.lib for lack of <pbin.v2\libs\regex\build\msvc-8.0\release\threading-multi>wc_regex_traits.obj... ...skipped <pstage\lib>boost_regex-vc80-mt-1_36.lib for lack of <pbin.v2\libs\regex\build\msvc-8.0\release\threading-multi>boost_regex-vc80-mt-1_36.lib... ...skipped <pstage\lib>boost_regex-vc80-mt.lib for lack of <pstage\lib>boost_regex-vc80-mt-1_36.lib... compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\debug\link-static\threading-multi\wc_regex_traits.obj wc_regex_traits.cpp libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C2375: ??std::allocator<_Ty>::allocator??: ?????????????????? with [ _Ty=unsigned short ] D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xmemory(120) : ??????std::allocator<_Ty>::allocator???????? with [ _Ty=unsigned short ] libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C3190: ????????????????????????std::allocator<_Ty>::allocator(void) throw()????????std::allocator<_Ty>???????????????????????????? with [ _Ty=unsigned short ] call "D:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-8.0\debug\link-static\threading-multi\wc_regex_traits.obj.rsp" ...failed compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\debug\link-static\threading-multi\wc_regex_traits.obj... compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\debug\link-static\threading-multi\usinstances.obj usinstances.cpp libs\regex\src\..\src\usinstances.cpp(55) : error C2375: ??std::allocator<_Ty>::allocator??: ?????????????????? with [ _Ty=unsigned short ] D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xmemory(120) : ??????std::allocator<_Ty>::allocator???????? with [ _Ty=unsigned short ] libs\regex\src\..\src\usinstances.cpp(55) : error C3190: ????????????????????????std::allocator<_Ty>::allocator(void) throw()????????std::allocator<_Ty>???????????????????????????? with [ _Ty=unsigned short ] call "D:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-8.0\debug\link-static\threading-multi\usinstances.obj.rsp" ...failed compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\debug\link-static\threading-multi\usinstances.obj... ...skipped <pbin.v2\libs\regex\build\msvc-8.0\debug\link-static\threading-multi>libboost_regex-vc80-mt-gd-1_36.lib for lack of <pbin.v2\libs\regex\build\msvc-8.0\debug\link-static\threading-multi>wc_regex_traits.obj... ...skipped <pstage\lib>libboost_regex-vc80-mt-gd-1_36.lib for lack of <pbin.v2\libs\regex\build\msvc-8.0\debug\link-static\threading-multi>libboost_regex-vc80-mt-gd-1_36.lib... ...skipped <pstage\lib>libboost_regex-vc80-mt-gd.lib for lack of <pstage\lib>libboost_regex-vc80-mt-gd-1_36.lib... compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\link-static\threading-multi\wc_regex_traits.obj wc_regex_traits.cpp libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C2375: ??std::allocator<_Ty>::allocator??: ?????????????????? with [ _Ty=unsigned short ] D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xmemory(120) : ??????std::allocator<_Ty>::allocator???????? with [ _Ty=unsigned short ] libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C3190: ????????????????????????std::allocator<_Ty>::allocator(void) throw()????????std::allocator<_Ty>???????????????????????????? with [ _Ty=unsigned short ] call "D:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-8.0\release\link-static\threading-multi\wc_regex_traits.obj.rsp" ...failed compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\link-static\threading-multi\wc_regex_traits.obj... compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\link-static\threading-multi\usinstances.obj usinstances.cpp libs\regex\src\..\src\usinstances.cpp(55) : error C2375: ??std::allocator<_Ty>::allocator??: ?????????????????? with [ _Ty=unsigned short ] D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xmemory(120) : ??????std::allocator<_Ty>::allocator???????? with [ _Ty=unsigned short ] libs\regex\src\..\src\usinstances.cpp(55) : error C3190: ????????????????????????std::allocator<_Ty>::allocator(void) throw()????????std::allocator<_Ty>???????????????????????????? with [ _Ty=unsigned short ] call "D:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-8.0\release\link-static\threading-multi\usinstances.obj.rsp" ...failed compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\link-static\threading-multi\usinstances.obj... ...skipped <pbin.v2\libs\regex\build\msvc-8.0\release\link-static\threading-multi>libboost_regex-vc80-mt-1_36.lib for lack of <pbin.v2\libs\regex\build\msvc-8.0\release\link-static\threading-multi>wc_regex_traits.obj... ...skipped <pstage\lib>libboost_regex-vc80-mt-1_36.lib for lack of <pbin.v2\libs\regex\build\msvc-8.0\release\link-static\threading-multi>libboost_regex-vc80-mt-1_36.lib... ...skipped <pstage\lib>libboost_regex-vc80-mt.lib for lack of <pstage\lib>libboost_regex-vc80-mt-1_36.lib... ...failed updating 8 targets... ...skipped 16 targets... -- Best regards, PangYongQiang

ipangth wrote:
No, I try the above command but no more libraries. Here is the built output, seems somethings wrong, but i dont know why...
Ah, there were build errors: this is a known issue with using msvc *without* the service pack applied. Either apply the latest service pack to msvc, or if that's not possible then update the regex source files usinstances.cpp and wc_regex_traits.cpp in libs/regex/src to match those here: http://svn.boost.org/trac/boost/browser/trunk/libs/regex/src HTH, John.

Thanks, just fixed it. 2008/9/29 John Maddock <john@johnmaddock.co.uk>:
ipangth wrote:
No, I try the above command but no more libraries. Here is the built output, seems somethings wrong, but i dont know why...
Ah, there were build errors: this is a known issue with using msvc *without* the service pack applied. Either apply the latest service pack to msvc, or if that's not possible then update the regex source files usinstances.cpp and wc_regex_traits.cpp in libs/regex/src to match those here: http://svn.boost.org/trac/boost/browser/trunk/libs/regex/src
HTH, John. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Best regards, PangYongQiang
participants (2)
-
ipangth
-
John Maddock