
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. Thanks,

Hi! 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 <m5111128@u-aizu.ac.jp>wrote:
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.
Thanks,
participants (2)
-
Ovanes Markarian
-
Yoshiyuki Watanabe