Boost logo

Boost Users :

From: Nathan Fain (cyphunk_at_[hidden])
Date: 2006-10-23 22:01:09


perhaps someone knows a way i can go about looking at this? or is there
other info i need to provide?

thanks again

On 10/21/06, Nathan Fain <cyphunk_at_[hidden]> wrote:
>
> i cannot tell why i am having trouble with basic_regex. I followed the
> installation instructions and had no error on install.
>
>
> g++ -o example -g -O2 -Wall -W -Wno-unused -fno-strict-aliasing
> example.cc -lboost_regex
> /tmp/ccFmlTDD.o(.text+0x3c): In function `main':
> /usr/local/include/boost/regex/v4/basic_regex.hpp:253: undefined reference
> to `boost::basic_regex<char, boost::regex_traits<char,
> boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*,
> unsigned)'
> collect2: ld returned 1 exit status
>
> example.cc:
> #include <boost/regex.hpp>
> using namespace boost;
> int main () {
> regex expr("foo");
> return 0;
> }
>
> i compiled and installed boost as follows:
> ./tools/build/jam_src/bin.linuxx86/bjam -sHAVE_ICU=1
> -sICU_PATH=/usr/local/share/icu/3.6 -sTOOLS=gcc -sPYTHON_ROOT=/usr
> -sPYTHON_VERSION=2.4 --prefix=/usr/local --exec-prefix=/usr/local
> --libdir=/usr/local/lib --includedir=/usr/local/include install
>
>
> thanks for any help
>
> --
> cyphunk://cypherpoet.com

-- 
cyphunk://cypherpoet.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