[thread] 1.47 on cygwin 1.7 -> undefined reference to boost::detail::set_tss_data::shared_ptr::tss_cleanup

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

Try to compile with -DBOOST_THREAD_USE_LIB=1
I now get the following error: /usr/i686-w64-mingw32/sys-root/mingw/lib/libmingw32.a(lib32_libmingw32_a-tlssup.o):tlssup.c:(.tls+0x0): multiple definition of `__tls_used' /cygdrive/d/Softs/1.7/mgw-release/boost/lib/libboost_thread_win32.a(tss_pe.o):tss_pe.cpp:(.rdata$T+0x0): first defined here Frédéric


Happy to see that I am not the only one in the dark. Did you learn more about it in the end? Frédéric

On 1:59 PM, Frédéric Bron wrote:
Just that I need those flags and many others don't (e.g., Linux users). Some other libs (e.g., serialization) have similar ones.
participants (3)
-
Frédéric Bron
-
Jim Bell
-
TONGARI