Hi!
I have downloaded the lastest version 1.41.0 of Boost, and I want to use
the regex library of it in MSVC6.
I got the following error messages when I pressed the enter key after
entering "nmake -fvc6.mak":
Microsoft (R) Program Maintenance Utility Version
6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights
reserved.
Building Boost.Regex without ICU / Unicode support:
Hint: set ICU_PATH
on the nmake command line to point
to your ICU installation if you have
one.
cl /c /nologo /ML /W3
/GX /O2 /GB /GF /Gy /I..\..\..\ /DWIN32 /DNDEBUG /D_MBCS /D_LIB
/FD -Y- -
Fo./vc6/libboost_regex-vc6-s-1_40/ -Fdvc6/
libboost_regex-vc6-s-1_40.pdb
../src/c_regex_traits.cpp
Command line warning D4002 : ignoring unknown
option '-Y-'
c_regex_traits.cpp
cl /c /nologo /ML /W3 /GX /O2 /GB /GF /Gy /I..\..\..\ /DWIN32 /DNDEBUG
/D_MBCS /D_LIB /FD -Y- -
Fo./vc6/libboost_regex-vc6-s-1_40/ -Fdvc6/
libboost_regex-vc6-s-1_40.pdb
../src/cpp_regex_traits.cpp
Command line warning D4002 : ignoring unknown
option
'-Y-'
cpp_regex_traits.cpp
..\..\..\boost/regex/v4/cpp_regex_traits.hpp(353)
: warning C4275: non dll-interface struct
'boost::re_detail::cpp_regex_traits_base<char>' used as ba
se for
dll-interface class
'boost::re_detail::cpp_regex_traits_char_layer<char>'
..\..\..\boost/regex/v4/cpp_regex_traits.hpp(352) : see declaration of
'cpp_regex_traits_char_layer<char>'
..\..\..\boost/regex/v4/w32_regex_traits.hpp(253)
: warning C4275: non dll-interface struct
'boost::re_detail::w32_regex_traits_base<char>' used as ba
se for
dll-interface class
'boost::re_detail::w32_regex_traits_char_layer<char>'
..\..\..\boost/regex/v4/w32_regex_traits.hpp(252) : see declaration of
'w32_regex_traits_char_layer<char>'
cl /c /nologo /ML /W3 /GX /O2 /GB /GF /Gy /I..\..\..\ /DWIN32 /DNDEBUG
/D_MBCS /D_LIB /FD -Y- -
Fo./vc6/libboost_regex-vc6-s-1_40/ -Fdvc6/
libboost_regex-vc6-s-1_40.pdb
../src/cregex.cpp
Command line warning D4002 : ignoring unknown option
'-Y-'
cregex.cpp
..\..\..\boost/regex/v4/cpp_regex_traits.hpp(353) :
warning C4275: non dll-interface struct
'boost::re_detail::cpp_regex_traits_base<char>' used as ba
se for
dll-interface class
'boost::re_detail::cpp_regex_traits_char_layer<char>'
..\..\..\boost/regex/v4/cpp_regex_traits.hpp(352) : see declaration of
'cpp_regex_traits_char_layer<char>'
..\..\..\boost/regex/v4/w32_regex_traits.hpp(253)
: warning C4275: non dll-interface struct
'boost::re_detail::w32_regex_traits_base<char>' used as ba
se for
dll-interface class
'boost::re_detail::w32_regex_traits_char_layer<char>'
..\..\..\boost/regex/v4/w32_regex_traits.hpp(252) : see declaration of
'w32_regex_traits_char_layer<char>'
..\..\..\boost/regex/v4/match_results.hpp(184)
: error C2535: 'class std::basic_string<Traits,struct
std::char_traits<Traits>,class std::allocator<Tra
its> >
__thiscall boost::match_results<Traits,A>::str(const class
std::basic_string<Traits,_E,_Tr> &) const' :
member function already defined or
decl
ared
..\..\..\boost/regex/v4/match_results.hpp(174) : see declaration of
'str'
..\..\..\boost/regex/v4/match_results.hpp(454) : see reference to class template
instantiation
'boost::match_results<BidiIterator,Allocator>'
being
compiled
..\..\..\boost/regex/v4/match_results.hpp(256) : error C2535: 'const
struct boost::sub_match<Traits> &__thiscall
boost::match_results<Traits,A>::opera
tor [](const class
std::basic_string<Traits,_E,_Tr> &) const' : member function already
defined or declared
..\..\..\boost/regex/v4/match_results.hpp(233) : see declaration of
'[]'
..\..\..\boost/regex/v4/match_results.hpp(454) : see reference to class template
instantiation
'boost::match_results<BidiIterator,Allocator>'
being
compiled
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
POST: I have cancelled the comments before #define
BOOST_REGEX_USE_CPP_LOCALE, #define BOOST_REGEX_HAS_DLL_RUNTIME, #define
BOOST_REGEX_DYN_LINK, #define BOOST_REGEX_HAS_MS_STACK_GUARD, and #define
BOOST_REGEX_RECURSIVE in boost\regex\user.hpp.
Before I cancelled these comments, I have got the same error messages
above.
Can anyone help me to fix this problem?
Thanks very much!!!
2010-01-22
xwf1788