RE: [Boost-users] Trouble linking regex library on Solaris machine
Justin Adam 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.
It looks like you are trying to use the wrong library. SunPro refers to the Sun C++ compiler and tools whereas you are using GNU C++. You have to build the library and application with the same compiler.
You're absolutely right. I'm a complete tool. I first compiled my test program + library on a Linux machine w/ GNU, and simply copied my makefile over to my Sun machine without changing the compiler. Ben, John - thanks for the help. Justin Miller On Wed, 18 Feb 2004, Ben Hutchings wrote:
It looks like you are trying to use the wrong library. SunPro refers to the Sun C++ compiler and tools whereas you are using GNU C++. You have to build the library and application with the same compiler. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Ben Hutchings
-
Justin Adam Miller