$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [thread] 1.47 on cygwin 1.7 -> undefined reference to boost::detail::set_tss_data::shared_ptr::tss_cleanup
From: Jim Bell (Jim_at_[hidden])
Date: 2011-08-17 11:23:28
On 1:59 PM, TONGARI wrote:
> 2011/8/17 Frédéric Bron <frederic.bron_at_[hidden] 
> <mailto:frederic.bron_at_[hidden]>>
>
>     I am trying to use boost 1.47 on cygwin 1.7 cross-compiling to win32
>     with i686-w64-mingw32-g++ (4.5.3).
>
>     This program gives me an error:
>
>     #include <boost/thread/tss.hpp>
>     int main() {
>            boost::thread_specific_ptr<int> ts;
>            return 0;
>     }
>
>     ...: undefined
>     reference to
>     `__imp___ZN5boost6detail12set_tss_dataEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPvb'
>     collect2: ld returned 1 exit status
>
>     any help would be welcome.
>
>
> Try to compile with -DBOOST_THREAD_USE_LIB=1
>
See <https://svn.boost.org/trac/boost/ticket/4921>