Boost logo

Boost :

From: Renato Tegon Forti (re.tf_at_[hidden])
Date: 2005-11-25 12:43:41


Hi John, I have other doubt, If you cam help-me again.

I put lib PATH (LIBPATH:C:\RogueWave\SourcePro\Ed8\lib), like you say, and
now all compile, but I receive many LINK errors, I think that this is
because I need put lib name: std41-rmd.lib (this is my RWSTD Lib), but were
I should put this?

Sample of error that I receive:

usinstances.obj : error LNK2019: unresolved external symbol
"__declspec(dllimpor
t) public: class __rw::__rw_debug_iter<class std::basic_string<unsigned
short,st
ruct std::char_traits<unsigned short>,class std::allocator<unsigned short>
>,uns
igned short *,unsigned short *> __thiscall std::basic_string<unsigned
short,stru
ct std::char_traits<unsigned short>,class std::allocator<unsigned short>
>::end(
void)"
(__imp_?end@?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@@
QAE?AV?$__rw_debug_iter_at_V?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator@
G_at_2@
@std@@PAGPAG@__rw@@XZ) referenced in function "public: struct
boost::re_detail::
re_syntax_base * __thiscall boost::re_detail::basic_regex_creator<unsigned
short
,struct boost::regex_traits<unsigned short,class
boost::w32_regex_traits<unsigne
d short> > >::append_set(class boost::re_detail::basic_char_set<unsigned
short,s
truct boost::regex_traits<unsigned short,class
boost::w32_regex_traits<unsigned
short> > > const &,struct boost::mpl::bool_<0> *)"
(?append_set@?$basic_regex_cr
eator_at_GU?$regex_traits_at_GV?$w32_regex_traits_at_G@boost@@@boost@@@re_detail_at_boos
t@@Q
AEPAUre_syntax_base_at_23@ABV?$basic_char_set_at_GU?$regex_traits_at_GV?$w32_regex_tr
aits
@G_at_boost@@@boost@@@23_at_PAU?$bool_@$0A@@mpl_at_3@@Z)
..\..\..\bin\boost\libs\regex\build\boost_regex.dll\vc-7_1\std41-rmd.lib\thr
eadi
ng-multi\boost_regex-vc71-mt-g-1_33_1.dll : fatal error LNK1120: 154
unresolved
externals

    "link" /nologo /INCREMENTAL:NO /DEBUG -nologo -NODEFAULTLIB:msvcprtd
-debu
g -LIBPATH:C:\RogueWave\SourcePro\Ed8\lib -MACHINE:X86 /DLL
/subsystem:console
 
/out:"..\..\..\bin\boost\libs\regex\build\boost_regex.dll\vc-7_1\std41-rmd.l
ib
\threading-multi\boost_regex-vc71-mt-g-1_33_1.dll"
/IMPLIB:"..\..\..\bin\boost\
libs\regex\build\boost_regex.dll\vc-7_1\std41-rmd.lib\threading-multi\boost_
rege
x-vc71-mt-g-1_33_1.lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio
.NE
T 2003\VC7\lib"
@"..\..\..\bin\boost\libs\regex\build\boost_regex.dll\vc-7_1\s
td41-rmd.lib\threading-multi\boost_regex-vc71-mt-g-1_33_1.CMD"

...failed vc-Link
..\..\..\bin\boost\libs\regex\build\boost_regex.dll\vc-7_1\std
41-rmd.lib\threading-multi\boost_regex-vc71-mt-g-1_33_1.dll
..\..\..\bin\boost\l
ibs\regex\build\boost_regex.dll\vc-7_1\std41-rmd.lib\threading-multi\boost_r
egex
-vc71-mt-g-1_33_1.lib...
...skipped
<@boost!libs!regex!build!stage!lib>boost_regex-vc71-mt-g-1_33_1.dll f
or lack of
<@boost!libs!regex!build\boost_regex.dll\vc-7_1\std41-rmd.lib\threadi
ng-multi>boost_regex-vc71-mt-g-1_33_1.dll...
...skipped
<@boost!libs!regex!build!stage!lib>boost_regex-vc71-mt-g-1_33_1.lib f
or lack of
<@boost!libs!regex!build\boost_regex.dll\vc-7_1\std41-rmd.lib\threadi
ng-multi>boost_regex-vc71-mt-g-1_33_1.lib...
...failed updating 4 targets...
...skipped 4 targets...
...updated 93 targets...

-----Mensagem original-----
De: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] Em
nome de John Maddock
Enviada em: quinta-feira, 24 de novembro de 2005 08:24
Para: boost_at_[hidden]
Assunto: Re: [boost] ENC: build boost with other standard Lib (std)

Renato Tegon Forti wrote:
> Hi John, Thank you (very very very... much) for your help.
>
> I have one doubt; I need define one Preprocessor directive to compile
> with RogueWave STD, and specify lib directory to link with RW libs,
> then I did try:
>
> bjam "-sBUILD=debug <cxxflags>-IC:\RogueWave\SourcePro\Ed8\include
> <cxxflags>-IC:\RogueWave\SourcePro\Ed8\include\ansi
> <cxxflags>-IC:\RogueWave\SourcePro\Ed8\lib <cxxflags>-D_RWCONFIG=rmd
> <runtime-link>dynamic <threading>multi" "-sTOOLS=vc-7_1"
>
> but this don't work. Where I should put lib
> dir(C:\RogueWave\SourcePro\Ed8\)
>
> Can you help-me?
>
> Sample of error returned: I think that this error is because it don't
> find
> RW libs.

It needs to be put under <linkflags> and for VC71 the command line option is

presumably -LIBPATH:path, so:

bjam "-sBUILD=debug <cxxflags>-IC:\RogueWave\SourcePro\Ed8\include
<cxxflags>-IC:\RogueWave\SourcePro\Ed8\include\ansi
<linkflags>-LIBPATH:C:\RogueWave\SourcePro\Ed8\lib <cxxflags>-D_RWCONFIG=rmd
<runtime-link>dynamic <threading>multi" "-sTOOLS=vc-7_1"

Does this do it?

John.

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost

Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: McAfee VirusScan / Atualizado em 23/11/2005 / Versco:
4.4.00/4635
Proteja o seu e-mail Terra: http://mail.terra.com.br/


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk