Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-09-01 04:58:40


Thomas wrote:
> Hi,
> I would like to use the Boost RegEx Library. Somehow I failed
> installing
> it (WinXP, VC6). Is there a step by step instruction to get boost
> running under this configuration?
> The steps I took so far:
> 1) Set the MSDevDir and MSVCDir EnvVars by hand.

Why not call the vcvars32.bat file to do it for you?

> 2) Compiled BJam and copied it to the boost root.
> 3) Execute bjam "-sTOOLS msvc" install

Should be bjam -sTOOLS=msvc install

But if the library built OK, then don't worry.

> 4) Set the path for include files and libraries in
> Tools->Options->Directories to the folder I unzipped Boost to.
>
> Got the following error messages while trying to compile a simple
> regex example :(

I've never seen anything like those messages before. The regex lib most
certainly does work with VC6 as well!

Can I suggest you try compiling one of the example programs that comes with
regex? Also make sure you're using the default VC6 build options to begin
with: it shouldn't matter one jot what options you use, but I can't rule out
the possibility that some obscure combination of compiler switches produces
those errors. So start with the defaults, and then add any extra options
you require one at a time and see what if anything triggers the issue.

Bemused,

John Maddock.

> Release--------------------
> Compiling...
> trwetst.cpp
> C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664:
> '__thiscall boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::re
> gex_traits<char,class boost::w32_regex_traits<char> > >
>>>> boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::regex_traits<char,class boost::w32_regex_traits<char> > >
> >(class boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::regex_traits<char,class boost::w32_regex_traits<char> > >
> *,bool (__thiscall T::*)(void ))' : cannot convert parameter 2 from
> 'bool (__thiscall boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::regex_traits<char,class boost::w32_regex_traits<char> > >::*'
> to 'bool (__
> thiscall T::*)(void)'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> C:\BOOST\boost/shared_ptr.hpp(246) : while compiling
> class-template member function 'bool __thiscall
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::regex_traits<char,cla
> ss boost::w32_regex_traits<char> > >::protected_call(bool (__thiscall
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::regex_traits<char,class boost::w32_regex_traits<char> > >::*
> )'
> C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664:
> '__thiscall boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,class
> boost::cpp _regex_traits<char> >
> >::boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,class
> boost::cpp_regex_traits<char> >
>> (class boost::re_detail::perl_ma
> tcher<char const *,class std::allocator<struct boost::sub_match<char
> const *> >,class boost::cpp_regex_traits<char> > *,bool (__thiscall
> T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall
> boost::re_detail::perl_matcher<char const *,cl
> ass std::allocator<struct boost::sub_match<char const *> >,class
> boost::cpp_regex_traits<char> >::*' to 'bool (__thiscall T::*)(void)'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> C:\BOOST\boost/shared_ptr.hpp(246) : while compiling
> class-template member function 'bool __thiscall
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,class
> boost::cpp_regex_traits<char> >::protected_call(bool (__thiscall
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *>
>> ,class boost::cpp_regex_traits<char> >::*)'
> C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664:
> '__thiscall boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::c_
> regex_traits<char> >
> >::boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::c_regex_traits<char> >
>> (class boost::re_detail::perl_matc
> her<char const *,class std::allocator<struct boost::sub_match<char
> const *> >,struct boost::c_regex_traits<char> > *,bool (__thiscall
> T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::c_regex_traits<char> >::*' to 'bool (__thiscall T::*)(void)'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> C:\BOOST\boost/shared_ptr.hpp(246) : while compiling
> class-template member function 'bool __thiscall
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,struct
> boost::c_regex_traits<char>
>>>> protected_call(bool (__thiscall boost::re_detail::perl_matcher<char
> const *,class std::allocator<struct boost::sub_match<char const *>
>> ,struct boost::c_regex_traits<char> >::*)'
> C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664:
> '__thiscall boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,class
> boost::w32 _regex_traits<char> >
> >::boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,class
> boost::w32_regex_traits<char> >
>> (class boost::re_detail::perl_ma
> tcher<char const *,class std::allocator<struct boost::sub_match<char
> const *> >,class boost::w32_regex_traits<char> > *,bool (__thiscall
> T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall
> boost::re_detail::perl_matcher<char const *,cl
> ass std::allocator<struct boost::sub_match<char const *> >,class
> boost::w32_regex_traits<char> >::*' to 'bool (__thiscall T::*)(void)'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> C:\BOOST\boost/shared_ptr.hpp(246) : while compiling
> class-template member function 'bool __thiscall
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *> >,class
> boost::w32_regex_traits<char> >::protected_call(bool (__thiscall
> boost::re_detail::perl_matcher<char const *,class
> std::allocator<struct boost::sub_match<char const *>
>> ,class boost::w32_regex_traits<char> >::*)'
> C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664:
> '__thiscall boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *
>>> ,struct boost::regex_traits<unsigned short,class
> boost::w32_regex_traits<unsigned short> > >
>>>> boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<uns
> igned short const *> >,struct boost::regex_traits<unsigned short,class
> boost::w32_regex_traits<unsigned short> > > >(class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,s
> truct boost::regex_traits<unsigned short,class
> boost::w32_regex_traits<unsigned short> > > *,bool (__thiscall
> T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocato r<struct boost::sub_match<unsigned short const *>
> >,struct boost::regex_traits<unsigned short,class
> boost::w32_regex_traits<unsigned short> > >::*' to 'bool (__thiscall
> T::*)(void)'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> C:\BOOST\boost/shared_ptr.hpp(246) : while compiling
> class-template member function 'bool __thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *>
> >,struct boost::r
> egex_traits<unsigned short,class boost::w32_regex_traits<unsigned
> short>
>>>>> protected_call(bool (__thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *>
> >,struct boost::
> regex_traits<unsigned short,class boost::w32_regex_traits<unsigned
> short> > >::*)'
> C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664:
> '__thiscall boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *
>>> ,class boost::cpp_regex_traits<unsigned short> >
>>>> boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::cpp_rege
> x_traits<unsigned short> > >(class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::cpp_regex_traits<unsigned short> > *,bool (__thiscall
> T::*)(void))' : cannot
> convert parameter 2 from 'bool (__thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::cpp_regex_traits<unsigned short> >::*' to 'bool (__thiscall
> T::*)(v oid)'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> C:\BOOST\boost/shared_ptr.hpp(246) : while compiling
> class-template member function 'bool __thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::cp
> p_regex_traits<unsigned short> >::protected_call(bool (__thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::cpp_regex_traits<unsigned short> >::*)'
> C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664:
> '__thiscall boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *
>>> ,struct boost::c_regex_traits<unsigned short> >
>>>> boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *>
> >,struct boost::c_regex_
> traits<unsigned short> > >(class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned
> short const *> >,struct boost::c_regex_traits<unsigned short> > *,bool
> (__thiscall T::*)(void))' : cannot co
> nvert parameter 2 from 'bool (__thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *>
> >,struct boost::c_regex_traits<unsigned short> >::*' to 'bool
> (__thiscall T::*)(void) '
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> C:\BOOST\boost/shared_ptr.hpp(246) : while compiling
> class-template member function 'bool __thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *>
> >,struct boost::c
> _regex_traits<unsigned short> >::protected_call(bool (__thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *>
> >,struct boost::c_regex_traits<unsigned short> >::*)'
> C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664:
> '__thiscall boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *
>>> ,class boost::w32_regex_traits<unsigned short> >
>>>> boost::re_detail::concrete_protected_call<class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::w32_rege
> x_traits<unsigned short> > >(class
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::w32_regex_traits<unsigned short> > *,bool (__thiscall
> T::*)(void))' : cannot
> convert parameter 2 from 'bool (__thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::w32_regex_traits<unsigned short> >::*' to 'bool (__thiscall
> T::*)(v oid)'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> C:\BOOST\boost/shared_ptr.hpp(246) : while compiling
> class-template member function 'bool __thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::w3
> 2_regex_traits<unsigned short> >::protected_call(bool (__thiscall
> boost::re_detail::perl_matcher<unsigned short const *,class
> std::allocator<struct boost::sub_match<unsigned short const *> >,class
> boost::w32_regex_traits<unsigned short> >::*)'
> Error executing cl.exe.
>
> trwetst.exe - 8 error(s), 0 warning(s)
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net