Boost logo

Boost Users :

Subject: [Boost-users] Please help! How to make g++ link to instead of
From: Louis Chen (cszzys_at_[hidden])
Date: 2009-03-27 09:39:37

local machine(A): boost-1.33.1, suse 10.3, gcc-4.2.1
A:/home/aa # ldconfig -p | grep boost_thread (libc6) =>
/usr/lib/ (libc6) => /usr/lib/

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 (libc6) => /usr/lib/ (libc6) => /usr/lib/

The problem is that i compile main in A with LDFLAGS=-lboost_thread-mt. And
main is linked to
A:~/aa> ldd main | grep boost_thread =>
/usr/lib/ (0xb7ca6000)

When i try to run main in B, it fails, of course, with message: "main: error
while loading shared library: can not open
shared object file: No such file or directory."

How can i force g++ link main to 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, kalb at, bjorn.karlsson at, gregod at, wekempf at