Trouble linking regex library on Solaris machine
Howdy. As I am only interested in using the regex library right now, I followed the instructions for building that library only, using dmake. Compilation went fine. When I tried using the library in a little test program with the command: g++ regextest.cxx -I./boost_1_31_0 -L./boost_1_31_0/libs/regex/build/sunpro -lboost_regex -o regextest.cxx I get many undefined symbol errors. If requested, I can provide the entire error output. Justin Miller
Howdy. As I am only interested in using the regex library right now, I followed the instructions for building that library only, using dmake. Compilation went fine. When I tried using the library in a little test program with the command:
g++ regextest.cxx -I./boost_1_31_0 -L./boost_1_31_0/libs/regex/build/sunpro -lboost_regex -o regextest.cxx
I get many undefined symbol errors. If requested, I can provide the entire error output.
Which makefile did you build with? The library names are no longer simply "libboost_regex.a", but are now mangled with the compiler name and boost version (the same as the bjam generated library names), so you may not be picking up on the 1.31.0 compiled libraries. John.
I went to boost_1_31_0/libs/regex/build and compiled with sunpro.mak: dmake -f sunpro.mak. The libraries it built are: libboost_regex.a libboost_regex_mt.a libboost_regex_mt.so libboost_regex.so They're in build/sunpro. I forgot to mention that I'm using a Solaris machine, which I guess is obvious by now considering I used the sunpro makefile :) Justin
Which makefile did you build with? The library names are no longer simply "libboost_regex.a", but are now mangled with the compiler name and boost version (the same as the bjam generated library names), so you may not be picking up on the 1.31.0 compiled libraries.
John.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
John Maddock
-
Justin Adam Miller