ENC: build boost with other standard Lib (std)

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@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> td::char_traits<char>,class std::allocator<char> > const ,unsigned short> > pair @$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@G@std@@V? $bas ic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@__rw@@U?$less@V?$basic _str ing@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$ CBV? $basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@G@std@@@2@@__rw@ @@st d@@QAEXPAU_C_node_buf@?$__rb_tree@V?$basic_string@DU?$char_traits@D@std@@V?$ allo cator@D@2@@std@@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$alloca tor@ D@2@@std@@G@2@U?$__select1st@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@s td@@ V?$allocator@D@2@@std@@G@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allo cato r@D@2@@2@@__rw@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@ D@2@ @std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$ allo cator@D@2@@std@@G@std@@@2@@__rw@@I@Z) greg_month.obj : error LNK2019: unresolved external symbol "__declspec(dllimport ) public: __thiscall std::ios_base::Init::Init(void)" (__imp_??0Init@ios_base@st d@@QAE@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@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@ios_base@s td@@QAE@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@lists.boost.org [mailto:boost-bounces@lists.boost.org] Em nome de John Maddock Enviada em: quarta-feira, 23 de novembro de 2005 08:13 Para: boost@lists.boost.org Assunto: Re: [boost] build boost with other standard Lib (std)
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/

Renato Tegon Forti wrote:
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.

Hi, Yes I have success, but I receive some errors from compiler when it try compilefileiter wide_posix_api if create 15 of 17 needed .obj Why? Do you have any idea that what cam be? The errors: C:\Documents and Settings\renato\Desktop\boost_1_33_0\boost\regex\v4\fileiter.hp p(330) : error C2146: syntax error : missing ';' before identifier 'difference_t ype' C:\Documents and Settings\renato\Desktop\boost_1_33_0\boost\regex\v4\fileiter.hp p(330) : error C2501: 'boost::re_detail::file_iterator::difference_type' : missi ng storage-class or type specifiers C:\Documents and Settings\renato\Desktop\boost_1_33_0\boost\regex\v4\fileiter.hp p(377) : error C2039: 'ptrdiff_t' : is not a member of 'std' C:\Documents and Settings\renato\Desktop\boost_1_33_0\boost\regex\v4\fileiter.hp p(377) : error C2146: syntax error : missing ';' before identifier 'difference_t ype' C:\Documents and Settings\renato\Desktop\boost_1_33_0\boost\regex\v4\fileiter.hp p(377) : error C2501: 'boost::re_detail::directory_iterator::difference_type' : missing storage-class or type specifiers "cl" /Zm800 -nologo /EHsc -c -DBOOST_REGEX_CONFIG_INFO=1 -DBOOST_REGEX_DYN _LINK=1 /Z7 /Od /Ob0 /EHsc /GR /MDd /Op -IC:\RogueWave\SourcePro\Ed8\include - IC:\RogueWave\SourcePro\Ed8\include\ansi -D_RWCONFIG=rmd /wd4675 /Zc:forScope /Z c:wchar_t -I"..\..\..\bin\boost\libs\regex\build" -I"C:\Program Files\Microsof t Visual Studio .NET 2003\VC7\include" -I"C:\Documents and Settings\renato\Desk top\boost_1_33_0" -Fo"..\..\..\bin\boost\libs\regex\build\boost_regex.dll\vc-7 _1\debug\threading-multi\fileiter.obj" -Tp"../src/fileiter.cpp" ...failed vc-C++ ..\..\..\bin\boost\libs\regex\build\boost_regex.dll\vc-7_1\debu g\threading-multi\fileiter.obj... vc-C++ ..\..\..\bin\boost\libs\regex\build\boost_regex.dll\vc-7_1\debug\threadin g-multi\wide_posix_api.obj wide_posix_api.cpp ../src\wide_posix_api.cpp(161) : error C2039: 'swprintf' : is not a member of 's td' ../src\wide_posix_api.cpp(171) : error C2039: 'swprintf' : is not a member of 's td' -----Mensagem original----- De: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] Em nome de John Maddock Enviada em: quinta-feira, 24 de novembro de 2005 08:24 Para: boost@lists.boost.org Assunto: Re: [boost] ENC: build boost with other standard Lib (std) Renato Tegon Forti wrote:
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/

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> 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@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@re_detail@boos t@@Q AEPAUre_syntax_base@23@ABV?$basic_char_set@GU?$regex_traits@GV?$w32_regex_tr aits @G@boost@@@boost@@@23@PAU?$bool_@$0A@@mpl@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@lists.boost.org [mailto:boost-bounces@lists.boost.org] Em nome de John Maddock Enviada em: quinta-feira, 24 de novembro de 2005 08:24 Para: boost@lists.boost.org Assunto: Re: [boost] ENC: build boost with other standard Lib (std) Renato Tegon Forti wrote:
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/
participants (2)
-
John Maddock
-
Renato Tegon Forti