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.
boost::re_detail::concrete_protected_call
>,struct boost::regex_traits > (class boost::re_detail::perl_matcher >,struct boost::regex_traits > *,bool (__thiscall T::*)(void ))' : cannot convert parameter 2 from 'bool (__thiscall boost::re_detail::perl_matcher >,struct boost::regex_traits >::*' to 'bool (__ ::boost::re_detail::concrete_protected_call
>,class boost::cpp_regex_traits<char> > (class boost::re_detail::perl_ma tcher >,class boost::cpp_regex_traits<char> > *,bool (__thiscall T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall boost::re_detail::perl_matcher >,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 >,class boost::cpp_regex_traits<char> >::protected_call(bool (__thiscall boost::re_detail::perl_matcher ,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 >,struct boost::c_ regex_traits<char> > ::boost::re_detail::concrete_protected_call >,struct boost::c_regex_traits<char> > (class boost::re_detail::perl_matc her >,struct boost::c_regex_traits<char> > *,bool (__thiscall T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall boost::re_detail::perl_matcher >,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 >,struct boost::c_regex_traits<char> protected_call(bool (__thiscall boost::re_detail::perl_matcher
,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::w32 _regex_traits<char> > ::boost::re_detail::concrete_protected_call >,class boost::w32_regex_traits<char> > (class boost::re_detail::perl_ma tcher >,class boost::w32_regex_traits<char> > *,bool (__thiscall T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall boost::re_detail::perl_matcher >,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 >,class boost::w32_regex_traits<char> >::protected_call(bool (__thiscall boost::re_detail::perl_matcher ,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 > boost::re_detail::concrete_protected_call >,struct boost::regex_traits > >(class boost::re_detail::perl_matcher >,s ,struct boost::regex_traits
>::*' 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 ,struct boost::r egex_traits protected_call(bool (__thiscall boost::re_detail::perl_matcher
,struct boost:: regex_traits >::*)' C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664: '__thiscall boost::re_detail::concrete_protected_call boost::re_detail::concrete_protected_call >,class boost::cpp_rege x_traits<unsigned short> > >(class boost::re_detail::perl_matcher >,class boost::cpp_regex_traits<unsigned short> > *,bool (__thiscall T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall boost::re_detail::perl_matcher >,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 >,class boost::cp ,struct boost::c_regex_traits<unsigned short> >
boost::re_detail::concrete_protected_call
,struct boost::c_regex_ Release-------------------- Compiling... trwetst.cpp C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664: '__thiscall boost::re_detail::concrete_protected_call
>,struct boost::re gex_traits > 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 >,struct boost::regex_traits >::protected_call(bool (__thiscall boost::re_detail::perl_matcher >,struct boost::regex_traits >::* )' C:\BOOST\boost/regex/v4/perl_matcher_common.hpp(129) : error C2664: '__thiscall boost::re_detail::concrete_protected_call >,class boost::cpp _regex_traits<char> > truct boost::regex_traits > *,bool (__thiscall T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall boost::re_detail::perl_matcher p_regex_traits<unsigned short> >::protected_call(bool (__thiscall boost::re_detail::perl_matcher >,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 >,struct boost::c_regex_traits<unsigned short> > *,bool (__thiscall T::*)(void))' : cannot co nvert parameter 2 from 'bool (__thiscall boost::re_detail::perl_matcher ,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
,struct boost::c _regex_traits<unsigned short> >::protected_call(bool (__thiscall boost::re_detail::perl_matcher ,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::w32_regex_traits<unsigned short> >
boost::re_detail::concrete_protected_call
>,class boost::w32_rege x_traits<unsigned short> > >(class boost::re_detail::perl_matcher >,class boost::w32_regex_traits<unsigned short> > *,bool (__thiscall T::*)(void))' : cannot convert parameter 2 from 'bool (__thiscall boost::re_detail::perl_matcher >,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 >,class boost::w3 2_regex_traits<unsigned short> >::protected_call(bool (__thiscall boost::re_detail::perl_matcher >,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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users