
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

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@gmail.com> 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

Nathan Fain wrote:
perhaps someone knows a way i can go about looking at this? or is there other info i need to provide?
Based on the information you've provided I'm stumped. In fact I don't really see how it can posibly fail (works for me). Only thing I can think of for you to check is that there isn't a libboost_regex.a/so from an earlier version of Boost lurking somewhere in your lib search path that's being found in preference to the one you've just built. John.

this was exactly the problem. thanks. John Maddock hath thus wrought:
Based on the information you've provided I'm stumped. In fact I don't really see how it can posibly fail (works for me).
Only thing I can think of for you to check is that there isn't a libboost_regex.a/so from an earlier version of Boost lurking somewhere in your lib search path that's being found in preference to the one you've just built.
John.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- cyphunk://cypherpoet.com nathan://squimp.com
participants (2)
-
John Maddock
-
Nathan Fain