Boost Users :
Subject: Re: [Boost-users] Boost internal link problem
From: Frank J. R. Hanstick (trog24_at_[hidden])
Date: 2009-03-18 23:53:28
Frank J. R. Hanstick wrote:
> /bin/sh ../libtool --tag=CXX --mode=link g++ -D_THREAD_SAFE -g -O2
> -lboost_system-xgcc40-mt-1_37.dylib -o browser browser.o
> libtest-openvrml.la -lboost_unit_test_framework-xgcc40-mt-1_37
> /usr/bin/ld: can't locate file for: -lboost_system-xgcc40-
Shouldn't this be -lboost_system-xgcc40-mt-1_37 (no .dylib)
Also, why is it in a different place from the other libs?
>> /usr/bin/ld: can't locate file for: -lboost_system-xgcc40-
>Shouldn't this be -lboost_system-xgcc40-mt-1_37 (no .dylib)
There is not an -lboost_system-xgcc40-mt-1_37 input to g++ when this
occurs, so, it had to be gotten from somewhere else, either internal
to g++ which is unlikely or from libboost_filesystem_xgcc40-mt-1_37.
>Also, why is it in a different place from the other libs?
All Boost libraries are in /usr/local/lib where they are suppose to
be. This is verified by the command:
make check LDFLAGS='-lboost_system-xgcc40-mt-1_37'
successfully finding libboost_system-xgcc-mt-1_37.dylib.
Come think of it, there is also a libboost_xxx-xgcc40-mt set of
Boost libraries from an earlier install that gave the exact same
error message when libboost_system_xgcc40-mt is not specified which
would indicate that somewhere within libboost_filesystem_xgcc40-mt
and libboost_filesystem_xgcc40-mt-1_37 is an improper link direction
generated by the Boost library build that is overridden by the
Frank J. R. Hanstick
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