|
Boost Users : |
From: Peter Jones (mlists_at_[hidden])
Date: 2004-04-07 13:48:58
Hey, remember back when Rene Rivera said:
> The gcc toolset is already adding the -pthread option when linking
> multi-threaded variants (lines 143-145). Are you saying you need to use
> -pthread even when linking single-threaded variants?
This is what "bjam -sTOOLS=gcc -sBUILD=release" produces without my
change to gcc-tools.jam:
gcc-Link-action
bin/boost/libs/filesystem/build/libboost_filesystem.so/gcc/release/shared-linkable-true/libboost_filesystem-gcc-1_31.so
bin/boost/libs/filesystem/build/libboost_filesystem.so/gcc/release/shared-linkable-true/libboost_filesystem-gcc-1_31.imp
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
LIBPATH=bin/boost/libs/filesystem/build/libboost_filesystem.so/gcc/release/shared-linkable-true:bin/boost/libs/filesystem/build/libboost_filesystem.so/gcc/release/shared-linkable-true:$LIBPATH
export LIBPATH
g++ -s -fPIC -shared -o
"bin/boost/libs/filesystem/build/libboost_filesystem.so/gcc/release/shared-linkable-true/libboost_filesystem-gcc-1_31.so"
"bin/boost/libs/filesystem/build/libboost_filesystem.so/gcc/release/shared-linkable-true/exception.o"
"bin/boost/libs/filesystem/build/libboost_filesystem.so/gcc/release/shared-linkable-true/operations_posix_windows.o"
"bin/boost/libs/filesystem/build/libboost_filesystem.so/gcc/release/shared-linkable-true/path_posix_windows.o"
"bin/boost/libs/filesystem/build/libboost_filesystem.so/gcc/release/shared-linkable-true/convenience.o"
-- Peter Jones [unix;vi;crypto;c++;4wd] (http://pmade.org) PGP [5137 173E 5BFA 8C63 8982 F035 FDBB 1636 7D69 C63F]
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