Boost logo

Boost Users :

From: Srinivas Chamarthi (srinivas.chamarthi_at_[hidden])
Date: 2008-02-17 14:12:04


Hi John

I cannot express my joy in middle of the night here. I just now looked at
your solution and it worked like a magic. I was literally frustrated at this
problem and thought of leaving programming in C++. You lifted my spirts up,

Thank you very much.

On Feb 17, 2008 2:50 PM, John Maddock <john_at_[hidden]> wrote:

> Srinivas Chamarthi wrote:
> >> HI,
> >>
> >> I have built regex library with stlport using the following command
> >>
> >> nmake -fvc8-stlport.mak ( I copied vc71-stlport.mak to vc8-stlport
> >> and updated vc71 to vc80).
> >>
> >> It created *boost_regex-vc80-mt-gdp-1_34_1.lib *and dll files.
> >>
> >> I have defined the two variables in my application in the same order.
> >>
> >> #define #define __STL_DEBUG
> >> #define BOOST_REGEX_DYN_LINK
> >>
> >> Iam getting the following errors. can any 1 help me ? I am not able
> >> to proceed further with my application. I am stuck for last four
> >> days.
> >>
> >> I have seen some posts on this but not able to find the solution. I
> >> have defined the boost regex lib path properly.
> >>
> >> Appreciate your help
>
> The names being looked for by the linker don't include the
> __declspec(dllimport) modifier, so it looks to me as though your #defines
> are having no effect? These should be defined in the project
> options->Preprocessor->defines dialog so that they are set consistently
> across *all* source files.
>
> If all else fails, then: create a static library project in your IDE with
> the same settings as your application. Add the libs/regex/src/*.cpp files
> to it. Add the define BOOST_REGEX_NO_LIB to your application settings and
> make the static library a dependency of the application and rebuild.
> Voila,
> job done. Instructions for building as a dll are pretty much the same.
>
> HTH, John.
>
> >> Error 5 error LNK2019: unresolved external symbol "public: bool
> >> __thiscall boost::re_detail::perl_matcher<char const *,class
> >> stlp_std::allocator<struct boost::sub_match<char const *> >,struct
> >> boost::regex_traits<char,class boost::w32_regex_traits<char> >
> >>>>> match(void)" (?match@?$perl_matcher_at_PBDV?$allocator_at_U?$sub_match@
> >> PBD_at_boost@@@stlp_std@@U?$regex_traits_at_DV?$w32_regex_traits_at_D@boost
> >> @@@boost@@@re_detail_at_boost@@QAE_NXZ) referenced in function "bool
> >> __cdecl boost::regex_match<char const *,class
> >> stlp_std::allocator<struct boost::sub_match<char const *>
> >> >,char,struct boost::regex_traits<char,class
> >> boost::w32_regex_traits<char> > >(char const *,char const *,class
> >> boost::match_results<char const *,class stlp_std::allocator<struct
> >> boost::sub_match<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@
> >> PBDV?$allocator_at_U?$sub_match_at_PBD@boost@@@stlp_std@@DU?$regex_traits_at_DV
> >> ?$w32_regex_traits_at_D@boost@@@boost@@@boost@@
> YA_NPBD0AAV?$match_results_at_PBDV
> >> ?$allocator_at_U?$sub_match_at_PBD@boost@@@stlp_std@@@0_at_ABV?$basic_regex@
> >> DU?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@0_at_W4
> _match_flags@
> >> regex_constants_at_0@@Z) ExprEvaluator.obj
> >> Error 6 error LNK2019: unresolved external symbol "private:
> >> void __thiscall boost::re_detail::perl_matcher<char const *,class
> >> stlp_std::allocator<struct boost::sub_match<char const *> >,struct
> >> boost::regex_traits<char,class boost::w32_regex_traits<char> >
> >>>>> construct_init(class boost::basic_regex<char,struct
> >> boost::regex_traits<char,class boost::w32_regex_traits<char> > >
> >> const &,enum boost::regex_constants::_match_flags)"
> >> (?construct_init@?$perl_matcher_at_PBDV?$allocator_at_U?$sub_match_at_PBD@boost
> >> @@@stlp_std@@U?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@
> >> re_detail_at_boost@@AAEXABV?$basic_regex_at_DU?$regex_traits@
> >> DV?$w32_regex_traits_at_D@boost@@@boost@@@3_at_W4_match_flags@
> regex_constants_at_3@@Z)
> >> referenced in function "public: __thiscall
> >> boost::re_detail::perl_matcher<char const *,class
> >> stlp_std::allocator<struct boost::sub_match<char const *> >,struct
> >> boost::regex_traits<char,class boost::w32_regex_traits<char> >
> >> >::perl_matcher<char const *,class stlp_std::allocator<struct
> >> boost::sub_match<char const *> >,struct
> >> boost::regex_traits<char,class boost::w32_regex_traits<char> >
> >> >(char const *,char const *,class boost::match_results<char const
> >> *,class stlp_std::allocator<struct boost::sub_match<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,char const *)"
> >> (??0?$perl_matcher@
> >> PBDV?$allocator_at_U?$sub_match_at_PBD@boost@@@stlp_std@@U?$regex_traits_at_DV
> >> ?$w32_regex_traits_at_D@boost@@@boost@@@re_detail_at_boost@@QAE_at_PBD0AAV
> >> ?$match_results_at_PBDV?$allocator_at_U?$sub_match_at_PBD@boost@@@stlp_std@@@
> 2_at_ABV
> >> ?$basic_regex_at_DU?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@
> 2_at_W4
> >> _match_flags_at_regex_constants_at_2@0_at_Z) ExprEvaluator.obj
> >>
> >
> >
> >
> >> _______________________________________________
> >> Boost-users mailing list
> >> Boost-users_at_[hidden]
> >> http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.516 / Virus Database: 269.20.6/1282 - Release Date:
> > 15/02/2008 19:08
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
thanks & regards,
Srinivas Chamarthi,
http://fromexp.blogspot.com
http://chamarts.blogspot.com
Phone: +91-40-2407 4999(R)
Mobile: +91-9989141717


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