Boost logo

Boost Users :

Subject: [Boost-users] 64bit boost::regex link error
From: Lloyd (lloydkl.tech_at_[hidden])
Date: 2011-09-01 03:27:42


Hi,

I am trying to port a 32bit application built on 32bit windows to
64bit. We are using boost::regex library. We have successfully built
64 bit version of boost. When we try to link our application with
boost::regex we get the following error. What could be the reason?

We are using MS Windows 7 64bit, MS Visual studio 2010, and boost 1.46.1

This is the how we built boost

# bjam --build-type=minimal --with-regex --address-model=64

This is the error reported.

myfile.obj : error LNK2001: unresolved external symbol "private: class
boost::basic_regex<char,struct boost::regex_traits<char,class
boost::w32_regex_traits<char> > > & __cdecl
boost::basic_regex<char,struct boost::regex_traits<char,class
boost::w32_regex_traits<char> > >::do_assign(char const *,char const
*,unsigned int)"
(?do_assign@?$basic_regex_at_DU?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@boost@@AEAAAEAV12_at_PEBD0I@Z)

myfile.obj : error LNK2001: unresolved external symbol "private: void
__cdecl 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> >
>::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_PEBDV?$allocator_at_U?$sub_match_at_PEBD@boost@@@std@@U?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@re_detail_at_boost@@AEAAXAEBV?$basic_regex_at_DU?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@3_at_W4_match_flags_at_regex_constants_at_3@@Z)

myfile.obj : error LNK2001: unresolved external symbol "public: bool
__cdecl 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> >
>::find(void)" (?find@?$perl_matcher_at_PEBDV?$allocator_at_U?$sub_match_at_PEBD@boost@@@std@@U?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@re_detail_at_boost@@QEAA_NXZ)

Thanks,
   Lloyd


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