Boost logo

Boost Users :

Subject: Re: [Boost-users] boost_regex link problems
From: John Maddock (john_at_[hidden])
Date: 2009-02-19 12:02:05


> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net