Boost logo

Boost Testing :

Subject: Re: [Boost-testing] sync_access_test: Compiler threading support is not turned on
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-12-24 14:53:06


Juan Antonio Zaratiegui Vallecillo, a.k.a. Zara wrote:
>> Sandia-intel-10.0 / intel-linux-10.0
>>
>> reports
>> /var/scratch/boost/results/boost/bin.v2/libs/thread/build/intel-linux-10.0/debug/link-static/threading-multi/libboost_thread-il100-mt-d-1_38.a(thread.o)(.text+0x34f):
>> In function `boost::detail::(anonymous
>> namespace)::create_current_thread_tls_key()':
>> ../libs/thread/src/pthread/thread.cpp:102: undefined reference to
>> `pthread_key_create'
>> ... more like this
>>
>> What the deal here?
>
> you must add the option -lpthread to gcc, so as to link posix thread library

Why would I be required to do this? I shouldn't know anything about
platform details.

Gennadiy


Boost-testing list run by mbergal at meta-comm.com