
Using Boost 1.28 and regex I get linker errors regarding raw_storage. I believe someone has brought this up before but I didn't save the previous answer. error LNK2001: unresolved external symbol "public: class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc> __fastcall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::allocator(void)const "
error LNK2001: unresolved external symbol "public: class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc> __fastcall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::allocator(void)const "
error LNK2001: unresolved external symbol "public: __thiscall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc> >(class re_detail::detail::allocator_adapter<char,class boost::detail::simple_alloc> const &)"
error LNK2001: unresolved external symbol "public: __thiscall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc> >(class re_detail::detail::allocator_adapter<char,class boost::detail::simple_alloc> const &)"
error LNK2001: unresolved external symbol "public: void * __fastcall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::insert(unsigned int,unsigned int)"
error LNK2001: unresolved external symbol "public: void __fastcall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::resize(unsigned int)"
It seems to be related to these lines in instances.hpp template class re_detail::raw_storage< BOOST_DEFAULT_ALLOCATOR BOOST_REGEX_CHAR_T) >; template class BOOST_REGEX_DECL re_detail::raw_storage<BOOST_DEFAULT_ALLOCATOR(BOOST_REGEX_CHAR_T) >; Are these lines in error ? Should one or both of them be removed ? My guess is that the line with BOOST_REGEX_DECL needs to be removed.

"Edward Diener" <eddielee@tropicsoft.com> wrote in message news:aijm1s$s8a$1@main.gmane.org...
Using Boost 1.28 and regex I get linker errors regarding raw_storage. I believe someone has brought this up before but I didn't save the previous answer.
error LNK2001: unresolved external symbol "public: class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc> __fastcall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::allocator(void)const "
error LNK2001: unresolved external symbol "public: class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc> __fastcall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::allocator(void)const "
error LNK2001: unresolved external symbol "public: __thiscall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc> >(class re_detail::detail::allocator_adapter<char,class boost::detail::simple_alloc> const &)"
error LNK2001: unresolved external symbol "public: __thiscall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc> >(class re_detail::detail::allocator_adapter<char,class boost::detail::simple_alloc> const &)"
error LNK2001: unresolved external symbol "public: void * __fastcall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::insert(unsigned int,unsigned int)"
error LNK2001: unresolved external symbol "public: void __fastcall boost::re_detail::raw_storage<class boost::detail::allocator_adapter<char,class boost::detail::simple_alloc>
::resize(unsigned int)"
It seems to be related to these lines in instances.hpp
template class re_detail::raw_storage< BOOST_DEFAULT_ALLOCATOR BOOST_REGEX_CHAR_T) >;
template class BOOST_REGEX_DECL re_detail::raw_storage<BOOST_DEFAULT_ALLOCATOR(BOOST_REGEX_CHAR_T) >;
Are these lines in error ? Should one or both of them be removed ? My guess is that the line with BOOST_REGEX_DECL needs to be removed.
Removing the first of the two lines cited in instances.hpp, the line without the BOOST_REGEX_DECL fixes the problem. Hopefully this will be fixed for the next release.
participants (1)
-
Edward Diener