On Thu, Mar 10, 2005 at 05:52:08PM -0700, Warren Young wrote:
> >>ldd examples/.libs/resetdb
> >>
> >I obtain
> >ldd .libs/resetdb
> > libmysqlpp.so.4 => /usr/local/lib/libmysqlpp.so.4 (0x00829000)
>
> That's strange. I thought the examples always linked against the
> MySQL++ library in ../lib. The fact that they apparently do not should
> be investigated.
>
[ and later... ]
On Thu, Mar 10, 2005 at 09:53:52PM -0700, Warren Young wrote:
> Turns out they do! On first running the libtool-generated script in the
> examples directory, a second binary is created, .libs/lt-FOO. So my
> correction above was incorrect, too. One should say:
>
> $ ldd .libs/lt-resetdb
>
> to find out which libraries the resetdb example is using.
I don't have lt-resetdb. Using the original ldd command, I get the same
result (/usr/lib in my case). Only when I set LD_LIBRARY_PATH beforehand will
ldd give me a separate directory:
examples $ unset LD_LIBRARY_PATH
examples $ ldd .libs/resetdb
libmysqlpp.so.4 => /usr/lib/libmysqlpp.so.4 (0x40026000)
[...]
examples $ export LD_LIBRARY_PATH=/home/source5/mysql++-cvs/lib/.libs
examples $ ldd .libs/resetdb
libmysqlpp.so.4 => /home/source5/mysql++-cvs/lib/.libs/libmysqlpp.so.4
(0x40015000)
[...]
- Chris