
19 Feb
2009
19 Feb
'09
5:02 p.m.
I'm trying to use Boost regex for the first time and I'm having trouble getting libboost_regex to link.
The libraries are in /usr/lib64 and I try adding -lboost_regex to CC command and also explicitly adding /usr/lib64/libboost_regex.so or .a but I keep getting the same linker errors whether the library is specified or not.
I'm using Sun Studio 12.
What am I doing wrong?
My guess is that you have different compiler options specified for the application you're building and for the libboost_regex.so, a likely candidate is that bjam will build Boost.Regex with the -library=stlport4 option, where as you're application isn't? HTH, John.