Boost logo

Boost :

From: William E. Kempf (wekempf_at_[hidden])
Date: 2003-01-24 02:01:28


Sorry for this slightly off topic question, but I'm not a Linux user by
trade. I've recently switched distributions to Mandrake 9.0, which comes
with GCC 3.2 out of the box. When trying to compile Boost.Threads on this
platform I encounter the following problem:

gcc-Link-action
.../../../libs/thread/test/bin/test_thread.test/gcc/debug/runtime
-link-static/threading-multi/test_thread
/usr/bin/ld: cannot find -lrt
collect2: ld returned 1 exit status

    LD_LIBRARY_PATH=../../../libs/thread/build/bin/libboost_thread.so/gcc/debug/
runtime-link-static/shared-linkable-true/threading-multi
    export LD_LIBRARY_PATH
    g++ -static -g -pthread -o
"../../../libs/thread/test/bin/test_thread.tes
t/gcc/debug/runtime-link-static/threading-multi/test_thread"
-L"../../../libs/t
hread/build/bin/libboost_thread.so/gcc/debug/runtime-link-static/shared-linkable
-true/threading-multi"
"../../../libs/thread/test/bin/test_thread.test/gcc/deb
ug/runtime-link-static/threading-multi/test_thread.o"
"../../../libs/test/build
/bin/libboost_unit_test_framework.a/gcc/debug/runtime-link-static/threading-mult
i/libboost_unit_test_framework.a"
"../../../libs/test/build/bin/libboost_unit_te
st_framework.a/gcc/debug/runtime-link-static/threading-multi/libboost_unit_test_
framework.a"
"../../../libs/test/build/bin/libboost_unit_test_framework.a/gcc/d
ebug/runtime-link-static/threading-multi/libboost_unit_test_framework.a"
"../../
.../libs/test/build/bin/libboost_unit_test_framework.a/gcc/debug/runtime-link-sta
tic/threading-multi/libboost_unit_test_framework.a" -lrt -lboost_thread
-Wl,-
rpath-link,.

Can anyone explain to me what's wrong on my system that -lrt isn't finding
the library?

William E. Kempf
wekempf_at_[hidden]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk