Boost Users :
Subject: Re: [Boost-users] Boost regex does't work
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2008-11-02 09:10:33
boost-regex is not a header only lib, so you need to explicitly link your
executable against it. Otherwise, linker is unable to find symbols.
On Sun, Nov 2, 2008 at 12:14 PM, Yoshiyuki Watanabe
> Hi, I'm a new user of boost.
> I have a trouble to use boost. I downloaded boost_1_36_0 and put it on
> directory where I prefer.
> To use with eclipse, I set the path.
> Property->c/c++build->settings->GCC C++ compiler->directories
> Some functions like boost/tokenizer or boost/lexical_cast is working
> well, but only the function
> boost/regex doesn't work. Compile is finished safely, but once I tried
> to run, an error is appear
> ,and the process stops.
> Undefined symbols:
> "boost::basic_regex<char, boost::regex_traits<char,
> boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*,
> unsigned int)", referenced from:
> boost::basic_regex<char, boost::regex_traits<char,
> boost::cpp_regex_traits<char> > >::assign(char const*, char const*,
> unsigned int)in main.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> Would someone have ideas to use boost/regex on eclipse?
> My plattform is Mac OSX Leopard.
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