Boost logo

Boost :

From: Renato Tegon Forti (re.tf_at_[hidden])
Date: 2005-11-23 11:09:31


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.

greg_month.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport
) void __cdecl __rw::__rw_deallocate(void *,unsigned int,int)"
(__imp_?__rw_deal
locate@__rw@@YAXPAXIH_at_Z) referenced in function "public: void __thiscall
std::al
locator<struct __rw::__rb_tree<class std::basic_string<char,struct
std::char_tra
its<char>,class std::allocator<char> >,struct std::pair<class
std::basic_string<
char,struct std::char_traits<char>,class std::allocator<char> > const
,unsigned
short>,struct __rw::__select1st<struct std::pair<class
std::basic_string<char,st
ruct std::char_traits<char>,class std::allocator<char> > const ,unsigned
short>,
class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<
char> > >,struct std::less<class std::basic_string<char,struct
std::char_traits<
char>,class std::allocator<char> > >,class std::allocator<struct
std::pair<class
 std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
> const ,unsigned short> > >::_C_node_buf>::deallocate(struct
__rw::__rb_tree<c
lass std::basic_string<char,struct std::char_traits<char>,class
std::allocator<c
har> >,struct std::pair<class std::basic_string<char,struct
std::char_traits<cha
r>,class std::allocator<char> > const ,unsigned short>,struct
__rw::__select1st<
struct std::pair<class std::basic_string<char,struct
std::char_traits<char>,clas
s std::allocator<char> > const ,unsigned short>,class
std::basic_string<char,str
uct std::char_traits<char>,class std::allocator<char> > >,struct
std::less<class
 std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
> >,class std::allocator<struct std::pair<class
std::basic_string<char,struct s
td::char_traits<char>,class std::allocator<char> > const ,unsigned short> >
>::_
C_node_buf *,unsigned int)"
(?deallocate@?$allocator_at_U_C_node_buf@?$__rb_tree_at_V?
$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@U?$pair@$$CBV?$b
asic
_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@G_at_2@U?$__select1st_at_U?$
pair
@$$CBV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@G_at_std@@V?
$bas
ic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@2@@__rw@@U?$less_at_V?$basic
_str
ing_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@2_at_V?$allocator_at_U?$pair@$$
CBV?
$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@G_at_std@@@2@@__rw@
@@st
d@@QAEXPAU_C_node_buf@?$__rb_tree_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$
allo
cator_at_D@2@@std@@U?$pair@$$CBV?$basic_string_at_DU?$char_traits_at_D@std@@V?$alloca
tor@
D_at_2@@std@@G_at_2@U?$__select1st_at_U?$pair@$$CBV?$basic_string_at_DU?$char_traits_at_D@s
td@@
V?$allocator_at_D@2@@std@@G_at_std@@V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allo
cato
r_at_D@2@@2@@__rw@@U?$less_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator@
D_at_2@
@std@@@2_at_V?$allocator_at_U?$pair@$$CBV?$basic_string_at_DU?$char_traits_at_D@std@@V?$
allo
cator_at_D@2@@std@@G_at_std@@@2@@__rw@@I_at_Z)
greg_month.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport
) public: __thiscall std::ios_base::Init::Init(void)"
(__imp_??0Init_at_ios_base_at_st
d@@QAE_at_XZ) referenced in function _$E3
greg_month.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport
) public: __thiscall __rw::__rw_facet_id::__rw_facet_id(void)"
(__imp_??0__rw_fa
cet_id@__rw@@QAE_at_XZ) referenced in function _$E8
greg_month.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport
) public: __thiscall std::ios_base::Init::~Init(void)"
(__imp_??1Init_at_ios_base_at_s
td@@QAE_at_XZ) referenced in function _$E4
bin\boost\libs\date_time\build\boost_date_time.dll\vc-7_1\debug\threading-mu
lti\
boost_date_time-vc71-mt-gd-1_33_1.dll : fatal error LNK1120: 80 unresolved
exter
nals

    "link" /nologo /INCREMENTAL:NO /DEBUG /DLL /subsystem:console
/out:"bin\
boost\libs\date_time\build\boost_date_time.dll\vc-7_1\debug\threading-multi\
boos
t_date_time-vc71-mt-gd-1_33_1.dll"
/IMPLIB:"bin\boost\libs\date_time\build\boos
t_date_time.dll\vc-7_1\debug\threading-multi\boost_date_time-vc71-mt-gd-1_33
_1.l
ib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\lib"
@"
bin\boost\libs\date_time\build\boost_date_time.dll\vc-7_1\debug\threading-mu
lti\
boost_date_time-vc71-mt-gd-1_33_1.CMD"

...failed vc-Link
bin\boost\libs\date_time\build\boost_date_time.dll\vc-7_1\debu
g\threading-multi\boost_date_time-vc71-mt-gd-1_33_1.dll
bin\boost\libs\date_time
\build\boost_date_time.dll\vc-7_1\debug\threading-multi\boost_date_time-vc71
-mt-
gd-1_33_1.lib...
vc-C++
bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1\debug\thread
ing-multi\greg_month.obj
greg_month.cpp
vc-C++
bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1\debug\thread
ing-multi\greg_weekday.obj
greg_weekday.cpp
vc-C++
bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1\debug\thread
ing-multi\date_generators.obj
date_generators.cpp
vc-Archive
bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1\debug\th
reading-multi\libboost_date_time-vc71-mt-gd-1_33_1.lib
Microsoft (R) Library Manager Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

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

> I need build boost whit other std, have any way to do this?
>
> I need this because my system use STD provided by RogueWave, than I
> need
> that boost is build with this std.
>
> If have way to do this, what is the steps?

It depends what commands you need to insert into the command line, but lets
say you want /usr/local/rw/include added to your include search path you
could do:

bjam -sBUILD="<cxxflags>-I/usr/local/rw/include <threading>mutli/single
<runtime-link>dynamic release debug" -sTOOLS=gcc

which obviously assumes your building on a Unix variant with gcc, just
change the toolset name and the cxxflags options according to your needs.
If you need to inject more than one command line option then you need to use

multiple <cxxflags>-option parts. And finally if you need to add linker
options use <linkflags>-option.

Clear ?

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 22/11/2005 / Versco:
4.4.00/4634
Proteja o seu e-mail Terra: http://mail.terra.com.br/

Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: McAfee VirusScan / Atualizado em 22/11/2005 / Versco:
4.4.00/4634
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