|
Boost Users : |
Subject: [Boost-users] Please help! How to make g++ link to libboost_thread-mt.so instead of libboost_thread-mt.so.1.33.1
From: Louis Chen (cszzys_at_[hidden])
Date: 2009-03-27 09:39:37
Hi,
local machine(A): boost-1.33.1, suse 10.3, gcc-4.2.1
A:/home/aa # ldconfig -p | grep boost_thread
libboost_thread-mt.so.1.33.1 (libc6) =>
/usr/lib/libboost_thread-mt.so.1.33.1
libboost_thread-mt.so (libc6) => /usr/lib/libboost_thread-mt.so
remote machine(B): boost-1.34.1, fedora 10, gcc-4.3.2. And i can NOT
configure B.
B:/home/bb # ldconfig -p | grep boost_thread
libboost_thread-mt.so.3 (libc6) => /usr/lib/libboost_thread-mt.so.3
libboost_thread-mt.so (libc6) => /usr/lib/libboost_thread-mt.so
The problem is that i compile main in A with LDFLAGS=-lboost_thread-mt. And
main is linked to libboost_thread-mt.so.1.33.1.
A:~/aa> ldd main | grep boost_thread
libboost_thread-mt.so.1.33.1 =>
/usr/lib/libboost_thread-mt.so.1.33.1 (0xb7ca6000)
When i try to run main in B, it fails, of course, with message: "main: error
while loading shared library: libboost_thread-mt.so.1.33.1: can not open
shared object file: No such file or directory."
How can i force g++ link main to libboost_thread-mt.so in A?
Thanks in advance!:)
-- Louis Chen Southeast University, Nanjing Email:cszzys_at_[hidden] <Email%3Acszzys_at_[hidden]>
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