Boost logo

Boost Users :

Subject: Re: [Boost-users] boost 1.49.0 on Redhat 5.2 link issues
From: Stefan Schwarzer (stefan.schwarzer_at_[hidden])
Date: 2013-06-13 03:09:51


On Wednesday 12 June 2013 08:56:01 Slava wrote:
> On Tue, 11 Jun 2013 18:08:37 +0200, Stefan Schwarzer
>
> <stefan.schwarzer_at_[hidden]> wrote:
> > Dear everybody,
> >
> > we need to backport boost 1.49.0 to Redhat 5.2.
> > b2 ; b2 install --prefix=/usr/local succeeds and installs libraries and

> > However, we have a problem
> > even linking a mostly
> > trivial example:
> >
> > #include <boost/filesystem.hpp>
> > int main () {
> >
> > copy_file(boost::filesystem::path("atest"),
> >
> > boost::filesystem::path("btest"));
> >
> > }

> Hi Roald and Stefan.
>
> pass --verbose to ld (using -Wl,-verbose with g++), maybe you'll see
> something unexpected
>
> -- Slava

Thanks a lot!

I turned out that there are some older versions of filesystem and system in /usr/lib which
were used during link whereas the includes were taken from our new installation.
What was confusing in the end were the rules according to which includes and libraries were searched
by g++.

Thanks again,

Stefan.

-- 
Dr. Stefan Schwarzer
Fraunhofer-Institut für Physikalische Messtechnik IPM, Laser Scanning
Heidenhofstr. 8, 79110 Freiburg, Germany
Telefon: +49-(0)761-8857-366 / Mobil: +49-(0)172 6242286
stefan.schwarzer_at_[hidden]
http://www.ipm.fraunhofer.de

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