On 1:59 PM, TONGARI wrote:
2011/8/17 Frédéric Bron <frederic.bron@m4x.org>
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>