
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
Error 5 error LNK2019: unresolved external symbol "public: bool
__thiscall boost::re_detail::perl_matcher
::match(void)" (?match@?$perl_matcher@PBDV?$allocator@U?$sub_match@ PBD@boost@@@stlp_std@@U?$regex_traits@DV?$w32_regex_traits@D@boost @@@boost@@@re_detail@boost@@QAE_NXZ) referenced in function "bool __cdecl boost::regex_match
>,char,struct boost::regex_traits >(char const *,char const *,class boost::match_results > > &,class boost::basic_regex > const &,enum boost::regex_constants::_match_flags)" (??$regex_match@ PBDV?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@DU?$regex_traits@DV ?$w32_regex_traits@D@boost@@@boost@@@boost@@YA_NPBD0AAV?$match_results@PBDV ?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@@0@ABV?$basic_regex@ DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@0@W4_match_flags@ regex_constants@0@@Z) ExprEvaluator.obj Error 6 error LNK2019: unresolved external symbol "private: void __thiscall boost::re_detail::perl_matcher >,struct boost::regex_traits ::construct_init(class boost::basic_regex > const &,enum boost::regex_constants::_match_flags)" (?construct_init@?$perl_matcher@PBDV?$allocator@U?$sub_match@PBD@boost @@@stlp_std@@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@ re_detail@boost@@AAEXABV?$basic_regex@DU?$regex_traits@ DV?$w32_regex_traits@D@boost@@@boost@@@3@W4_match_flags@regex_constants@3@@Z) referenced in function "public: __thiscall boost::re_detail::perl_matcher >,struct boost::regex_traits >::perl_matcher >,struct boost::regex_traits >(char const *,char const *,class boost::match_results > > &,class boost::basic_regex > const &,enum boost::regex_constants::_match_flags,char const *)" (??0?$perl_matcher@ PBDV?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@U?$regex_traits@DV ?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@QAE@PBD0AAV ?$match_results@PBDV?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@@2@ABV ?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@2@W4 _match_flags@regex_constants@2@0@Z) ExprEvaluator.obj

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
>,struct boost::regex_traits match(void)" (?match@?$perl_matcher@PBDV?$allocator@U?$sub_match@ PBD@boost@@@stlp_std@@U?$regex_traits@DV?$w32_regex_traits@D@boost @@@boost@@@re_detail@boost@@QAE_NXZ) referenced in function "bool __cdecl boost::regex_match
,char,struct boost::regex_traits >(char const *,char const *,class boost::match_results > > &,class boost::basic_regex > const &,enum boost::regex_constants::_match_flags)" (??$regex_match@ PBDV?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@DU?$regex_traits@DV ?$w32_regex_traits@D@boost@@@boost@@@boost@@YA_NPBD0AAV?$match_results@PBDV ?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@@0@ABV?$basic_regex@ DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@0@W4_match_flags@ regex_constants@0@@Z) ExprEvaluator.obj Error 6 error LNK2019: unresolved external symbol "private: void __thiscall boost::re_detail::perl_matcher >,struct boost::regex_traits construct_init(class boost::basic_regex > const &,enum boost::regex_constants::_match_flags)" (?construct_init@?$perl_matcher@PBDV?$allocator@U?$sub_match@PBD@boost @@@stlp_std@@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@ re_detail@boost@@AAEXABV?$basic_regex@DU?$regex_traits@ DV?$w32_regex_traits@D@boost@@@boost@@@3@W4_match_flags@regex_constants@3@@Z) referenced in function "public: __thiscall boost::re_detail::perl_matcher >,struct boost::regex_traits ::perl_matcher >,struct boost::regex_traits (char const *,char const *,class boost::match_results > &,class boost::basic_regex > const &,enum boost::regex_constants::_match_flags,char const *)" (??0?$perl_matcher@ PBDV?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@U?$regex_traits@DV ?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@QAE@PBD0AAV ?$match_results@PBDV?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@@2@ABV ?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@2@W4 _match_flags@regex_constants@2@0@Z) ExprEvaluator.obj _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org 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

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
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
>,struct boost::regex_traits match(void)" (?match@?$perl_matcher@PBDV?$allocator@U?$sub_match@ PBD@boost@@@stlp_std@@U?$regex_traits@DV?$w32_regex_traits@D@boost @@@boost@@@re_detail@boost@@QAE_NXZ) referenced in function "bool __cdecl boost::regex_match
,char,struct boost::regex_traits >(char const *,char const *,class boost::match_results > > &,class boost::basic_regex > const &,enum boost::regex_constants::_match_flags)" (??$regex_match@ PBDV?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@DU?$regex_traits@DV ?$w32_regex_traits@D@boost@@@boost@@@boost@@ YA_NPBD0AAV?$match_results@PBDV ?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@@0@ABV?$basic_regex@ DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@0@W4 _match_flags@ regex_constants@0@@Z) ExprEvaluator.obj Error 6 error LNK2019: unresolved external symbol "private: void __thiscall boost::re_detail::perl_matcher >,struct boost::regex_traits construct_init(class boost::basic_regex > const &,enum boost::regex_constants::_match_flags)" (?construct_init@?$perl_matcher@PBDV?$allocator@U?$sub_match@PBD@boost @@@stlp_std@@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@ re_detail@boost@@AAEXABV?$basic_regex@DU?$regex_traits@ DV?$w32_regex_traits@D@boost@@@boost@@@3@W4_match_flags@ regex_constants@3@@Z) referenced in function "public: __thiscall boost::re_detail::perl_matcher >,struct boost::regex_traits ::perl_matcher >,struct boost::regex_traits (char const *,char const *,class boost::match_results > &,class boost::basic_regex > const &,enum boost::regex_constants::_match_flags,char const *)" (??0?$perl_matcher@ PBDV?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@U?$regex_traits@DV ?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@QAE@PBD0AAV ?$match_results@PBDV?$allocator@U?$sub_match@PBD@boost@@@stlp_std@@@ 2@ABV ?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@ 2@W4 _match_flags@regex_constants@2@0@Z) ExprEvaluator.obj _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org 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@lists.boost.org 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
participants (2)
-
John Maddock
-
Srinivas Chamarthi