Boost logo

Boost :

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


 

Hi all,

I have one problem, if any one can help-me.

 

I did try use boost (regex) whit my system that use RogueWave STD, but when
I try compile my system I receive 5 link errors (see below :error 1), then I
did try use this BJAM command line to build LIBS:

 

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

 

this build libs, but the error continue.

 

 

I did also try this:

 

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 did't compile. (see below: error 2)

 

The awkward thing is that the error occur in line 6, if I change line 6 to
this (return regex_match("some thing", e);), than compile if I put
std::string to_validate the error occurs.

 

Any one cam help-me - please!!!

 

 

1: bool validate(const std::string& regex, const std::string&
to_validate)

2: {

3: try

4: {

5: const boost::regex e(regex);

6: return regex_match(to_validate, e);

7: }

8: catch (...)

9: {

10: throw CParserException("bad_regex_syntax");

11: }

12: }

 

If anyone cam give me a light, please.

Thanks

 

Error 1:

 

------ Build started: Project: uratalkservr, Configuration: Debug Win32
------

 

Compiling...

stdafx.cpp

Include: dynamic linking with boost libraries

main.cpp

Include: dynamic linking with boost libraries

Linking to lib file: boost_regex-vc71-mt-gd-1_33_1.lib

Generating Code...

Linking...

main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: __thiscall boost::match_results<class __rw::__rw_debug_iter<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,char const *,char *>,class std::allocator<struct
boost::sub_match<class __rw::__rw_debug_iter<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,char const *,char *> > > >::~match_results<class
__rw::__rw_debug_iter<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,char const *,char
*>,class std::allocator<struct boost::sub_match<class
__rw::__rw_debug_iter<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,char const *,char *> > >
>(void)"
(__imp_??1?$match_results_at_V?$__rw_debug_iter_at_V?$basic_string_at_DU?$char_traits
@D_at_std@@V?$allocator_at_D@2@@std@@PBDPAD@__rw@@V?$allocator_at_U?$sub_match_at_V?$__r
w_debug_iter_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@P
BDPAD@__rw@@@boost@@@std@@@boost@@QAE_at_XZ) referenced in function "bool
__cdecl boost::regex_match<struct std::char_traits<char>,class
std::allocator<char>,char,struct boost::regex_traits<char,class
boost::w32_regex_traits<char> > >(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class
boost::basic_regex<char,struct boost::regex_traits<char,class
boost::w32_regex_traits<char> > > const &,enum
boost::regex_constants::_match_flags)"
(??$regex_match_at_U?$char_traits_at_D@std@@V?$allocator_at_D@2_at_DU?$regex_traits_at_DV?$
w32_regex_traits_at_D@boost@@@boost@@@boost@@YA_NABV?$basic_string_at_DU?$char_tra
its_at_D@std@@V?$allocator_at_D@2@@std@@ABV?$basic_regex_at_DU?$regex_traits_at_DV?$w32_
regex_traits_at_D@boost@@@boost@@@0_at_W4_match_flags_at_regex_constants_at_0@@Z)

... CONTINUES

..\..\_complication\debug\Ultimate Card
System\1.0\def$uratalk/uratalkservr.exe : fatal error LNK1120: 5 unresolved
externals

 

Build log was saved at "file://e:\project-Ultimate Card
System\_project\Ultimate Card System\server\_complication\debug\Ultimate
Card System\1.0\def$uratalk\___VS_ID\BuildLog.htm"

uratalkservr - 6 error(s), 0 warning(s)

 

 

---------------------- Done ----------------------

 

    Build: 0 succeeded, 1 failed, 0 skipped

 

 

 

 

Error 2:

.

greg_month.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport

) public: class std::basic_string<char,struct std::char_traits<char>,class
std::

allocator<char> > __thiscall std::basic_stringbuf<char,struct
std::char_traits<c

har>,class std::allocator<char> >::str(void)const "
(__imp_?str@?$basic_stringbu

f_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QBE?AV?$basic_string_at_DU?$cha
r_tr

aits_at_D@std@@V?$allocator_at_D@2@@2_at_XZ) referenced in function "public: class
std::b

asic_string<char,struct std::char_traits<char>,class std::allocator<char> >
__th

iscall std::basic_stringstream<char,struct std::char_traits<char>,class
std::all

ocator<char> >::str(void)const "
(?str@?$basic_stringstream_at_DU?$char_traits_at_D@st

d@@V?$allocator_at_D@2@@std@@QBE?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$all
ocat

or_at_D@2@@2_at_XZ)

. CONTINUES

 

 

 

    "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...

MkDir1 bin\boost\libs\date_time\build\libboost_date_time.lib

MkDir1 bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1

MkDir1 bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1\debug

MkDir1
bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1\debug\thread

ing-multi

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.

 

"bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1\debug\threadin
g-mu

lti\greg_month.obj"

"bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1\debug\threadin
g-mu

lti\greg_weekday.obj"

"bin\boost\libs\date_time\build\libboost_date_time.lib\vc-7_1\debug\threadin
g-mu

lti\date_generators.obj"

MkDir1 bin\boost\libs\filesystem

MkDir1 bin\boost\libs\filesystem\build

MkDir1 bin\boost\libs\filesystem\build\libboost_filesystem.lib

MkDir1 bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1

MkDir1 bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1\debug

MkDir1
bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1\debug\thre

ading-multi

vc-C++
bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1\debug\thre

ading-multi\exception.obj

exception.cpp

 

other part:

 

convert.obj : error LNK2001: unresolved external symbol "protected: virtual
int

__thiscall std::codecvt<wchar_t,char,int>::do_length(int &,char const *,char
con

st *,unsigned int)const " (?do_length@?$codecvt@_WDH_at_std@@MBEHAAHPBD1I_at_Z)

utf8_codecvt_facet.obj : error LNK2019: unresolved external symbol
"__declspec(d

llimport) public: __thiscall
std::codecvt<wchar_t,char,int>::codecvt<wchar_t,cha

r,int>(unsigned int)" (__imp_??0?$codecvt@_WDH_at_std@@QAE_at_I@Z) referenced in
funct

ion "public: __thiscall
boost::program_options::detail::utf8_codecvt_facet::utf8

_codecvt_facet(unsigned int)"
(??0utf8_codecvt_facet_at_detail@program_options_at_boos

t@@QAE_at_I@Z)

.

25 unresolved externals

 


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