|
Boost : |
From: Tim Hawes (Tim.Hawes_at_[hidden])
Date: 2002-10-23 07:58:29
On Wed, 2002-10-23 at 06:40, John Maddock wrote:
> > I am getting this error when I try to compile the
> > regex_match_example.cpp example program.
> >
> > This is with a newly installed boost 1.29.0 that compiled without
> > errors, using STLport 4.5.3, gcc 3.2 and Solaris' own linker
> > (/usr/ccs/bin/ld).
>
> The errors refer to std::xyz rather than their STLport equivalents:
> _STL::xyz or _STLD::xyz, could you be compiling the test program without
> STLport when the lib was compiled with it? Or alternatively compiling one in
> STLport debug mode and the other in non-debug mode?
>
Ooops! Well, my include path for stlport was wrong. I have corrected it,
but now I am getting the following...
c++ -O3 -funroll-all-loops -fomit-frame-pointer -ffast-math
-mcpu=ultrasparc -I/usr/local/gcc/3.2/include/stlport
-I/usr/local/gcc/3.2/boost -c regex_match_example.cpp
c++ -O3 -funroll-all-loops -fomit-frame-pointer -ffast-math
-mcpu=ultrasparc regex_match_example.o -o regex_match_example
/usr/local/gcc/3.2/boost/lib/libboost_regex.a
/usr/local/gcc/3.2/lib/libstlport_gcc.a -lpthread
Undefined first referenced
symbol in file
boost::re_detail::match_results_base<char const*, _STL::allocator<char>
>::allocator() constregex_match_example.o
boost::re_detail::match_results_base<char const*, _STL::allocator<char>
>::m_free()regex_match_example.o
boost::re_detail::c_traits_base::lower_case_map
regex_match_example.o
boost::re_detail::c_traits_base::class_map regex_match_example.o
boost::reg_expression<char, boost::regex_traits<char>,
_STL::allocator<char> >::~reg_expression
[in-charge]()regex_match_example.o
boost::re_detail::match_results_base<char const*, _STL::allocator<char>
>::set_first(char const*)regex_match_example.o
boost::re_detail::match_results_base<char const*, _STL::allocator<char>
>::cow()regex_match_example.o
boost::re_detail::match_results_base<char const*, _STL::allocator<char>
>::match_results_base[not-in-charge](_STL::allocator<char>
const&)regex_match_example.o
boost::reg_expression<char, boost::regex_traits<char>,
_STL::allocator<char> >::reg_expression[in-charge](char const*,
unsigned, _STL::allocator<char> const&)regex_match_example.o
boost::c_regex_traits<char>::transform(_STL::basic_string<char,
_STL::char_traits<char>, _STL::allocator<char> >&,
_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char>
> const&)regex_match_example.o
boost::re_detail::match_results_base<char const*, _STL::allocator<char>
>::set_size(unsigned, char const*, char const*)regex_match_example.o
boost::re_detail::match_results_base<char const*, _STL::allocator<char>
>::set_first(char const*, unsigned)regex_match_example.o
boost::c_regex_traits<char>::transform_primary(_STL::basic_string<char,
_STL::char_traits<char>, _STL::allocator<char> >&,
_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char>
> const&)regex_match_example.o
ld: fatal: Symbol referencing errors. No output written to
regex_match_example
collect2: ld returned 1 exit status
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk