Boost logo

Boost-Build :

Subject: [Boost-build] "ld returned 1 exit status" compiling boost thread with mingw-w64 "x64-4.8.1-posix-seh-rev5"
From: ken han (j609444_at_[hidden])
Date: 2013-10-10 18:00:56


Trying to compile some boost libraries in 64 bit on windows. I am using
mingw-w64 package "x64-4.8.1-posix-seh-rev5." I am stuck on figuring out
the following error when I compile boost thread. Section of output bellow.
Any ideas? Thanks

[...]
collect2.exe: error: ld returned 1 exit status

    "g++"
"-Wl,--out-implib,[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_thread-mt-d.dll.a"
-o
"[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_thread-mt-d.dll"
-shared -Wl,--start-group
"[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\win32\thread.o"
"[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\win32\tss_dll.o"
"[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\win32\tss_pe.o"
"[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\future.o"
"[...]bbuild_64\boost\bin.v2\libs\chrono\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_chrono-mt-d.dll.a"
"[...]bbuild_64\boost\bin.v2\libs\system\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_system-mt-d.dll.a"
-Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g -mthreads

...failed gcc.link.dll
[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_thread-mt-d.dll.a
[...]bbuild_64\boost\bin.v2\libs\thread\build\gcc-mngw-4.8.1\dbg\thrd-mlt\libboost_thread-mt-d.dll...
[...]



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk