|
Boost : |
Subject: Re: [boost] link error "can not open file"libboost_regex-vc80-mt-gd-1_36.lib"
From: ipangth (ipangth_at_[hidden])
Date: 2008-09-28 05:50:50
2008/9/28 John Maddock <john_at_[hidden]>:
> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk