Boost logo

Boost Users :

Subject: [Boost-users] boost::regex linking errors
From: rsennat (rsennat_at_[hidden])
Date: 2008-09-11 12:28:19


hi all,
im using boost::regex for the first time.

        #include <boost/regex.hpp>

        string aliasCmd = "xyz * abc";
        boost::regex regExp("[*]", boost::regex::basic);
        aliasCmd = boost::regex_replace(aliasCmd, regExp, "INST");

There were no compiler errors. But during linking, I get the errors as
below.
Could anyone please get me on this.

Thanks
rsennat

../../../lib/FREEBSD_6_i686/libobj.a(IObject.o): In function
 `basic_regex':
/sviews/ag_cli_tools//fw-boost/boost/regex/v4/basic_regex.hpp:340: undefined
ref
erence to `boost::reg_expression<char, boost::regex_traits<char>,
std::allocator
<char> >::reg_expression(char const*, unsigned int, std::allocator<char>
const&)
'
../../../lib/FREEBSD_6_i686/libobj.a(IObject.o): In function
 `~basic_regex':
/sviews/ag_cli_tools//fw-boost/boost/regex/v4/basic_regex.hpp:347: undefined
ref
erence to `boost::reg_expression<char, boost::regex_traits<char>,
std::allocator
<char> >::~reg_expression()'
/sviews/ag_cli_tools//fw-boost/boost/regex/v4/basic_regex.hpp:347: undefined
ref
erence to `boost::reg_expression<char, boost::regex_traits<char>,
std::allocator
<char> >::~reg_expression()'
../../../lib/FREEBSD_6_i686/libobj.a(IObject.o): In function
 `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*,
std::
basic_string<char, std::char_traits<char>, std::allocator<char> > >,
std::alloca
tor<boost::sub_match<__gnu_cxx::__normal_iterator<char const*,
std::basic_string
<char, std::char_traits<char>, std::allocator<char> > > > >,
boost::regex_traits
<char>, std::allocator<char> >::unwind_extra_block(bool)':
/sviews/ag_cli_tools//fw-boost/boost/regex/v4/perl_matcher_non_recursive.hpp:904
: undefined reference to `boost::re_detail::put_mem_block(void*)'

-- 
View this message in context: http://www.nabble.com/boost%3A%3Aregex-linking-errors-tp19438899p19438899.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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