
Hello John,
I find following *.a *.so but no libboost_regex.so
at path :/home/ChandanNilange/work/boost/lib
libboost_regex-gcc34-1_34.a
libboost_regex-gcc34-1_34.so
libboost_regex-gcc34-1_34.so.1.34.0
libboost_regex-gcc34.a
libboost_regex-gcc34-d-1_34.a
libboost_regex-gcc34-d-1_34.so
libboost_regex-gcc34-d-1_34.so.1.34.0
libboost_regex-gcc34-d.a
libboost_regex-gcc34-d.so
libboost_regex-gcc34-mt-1_34.a
libboost_regex-gcc34-mt-1_34.so
libboost_regex-gcc34-mt-1_34.so.1.34.0
libboost_regex-gcc34-mt.a
libboost_regex-gcc34-mt-d-1_34.a
libboost_regex-gcc34-mt-d-1_34.so
libboost_regex-gcc34-mt-d-1_34.so.1.34.0
libboost_regex-gcc34-mt-d.a
libboost_regex-gcc34-mt-d.so
libboost_regex-gcc34-mt.so
libboost_regex-gcc34.so
Also, I tried with all above *.a by stripping "lib" &
.* from their name. However I can get messages like
/usr/include/boost/regex/v4/basic_regex.hpp:338:
undefined reference to `boost::reg_expression ::reg_expression(std::allocator<char> const&)' Do you think I have made some mistake during build.
Following were the steps followed
=> gunzip boost_1_34_0.tar.gz
=> tar -xvf boost_1_34_0.tar
=> cd boost_1_34_0
=> ./configure
--prefix=/home/ChandanNilange/work/boost/
--with-libraries=regex
=> make install
Regards,
Chandan
--- John Maddock Chandan Nilange wrote: Hello, I have boost_1_32 version installed at
/usr/include/boost
Also, I have installed boost_1_34 at another
path:/home/myname/work/boost/boost_1_34_0/ Now when I try to run with 1_34 version, it still
points to 1_32 version at /usr/include (this is
observed when I debug using gdb it refers to
/usr/include/boost/regex/v4/match_results.hpp:118) I tried following things: 1]
export LD_LIBRARY_PATH=/home/myname/work/boost/boost_1_34_0/boost:$LD_LIBRARY_PATH export PATH=/home/myname/work/boost/boost_1_34_0/boost:$PATH Looks right. 2]
I am using following command for compilation
g++ -c -g
-I/home/myname/work/boost/boost_1_34_0/boost
${TEST_FILES_PATH}/${TEST}.c
g++ ${TEST}.o -L/home/myname/work/boost/lib
-lboost_regex Looks right: you could double check by checking the
value of BOOST_VERSION
in your code, and verifying that libboost_regex.so
is present in
/home/myname/work/boost/lib. 3] I am including boost header in ${TEST}.c as
below
#include "boost/regex.hpp" Also looks right. Basically you have three things to double check: 1) Compile time, that the right headers are
included.
2) Link time, that you're linking against the right
library.
3) Run time, that LD_LIBRARY_PATH is set right. Personnally if I were a better man, I'd put a bet on
#2, but that's just a
guess :-) HTH, John. _______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users ____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7