Boost logo

Boost-Build :

Subject: [Boost-build] once_atomic.cpp, "first defined here" issue
From: Dmitry (dmitry.gorelov_at_[hidden])
Date: 2017-11-22 22:18:20


Hello,

I compile my app under Windows using cygwin, crossplatform for linux Linaro,
GCC4.7.3.

Error message occurs:
-Lc:\cygwin\opt\crosstool\gcc-linaro-arm-linux-gnu\arm-linux-gnueabihf\lib\arm-linux-gnueabi
-Wl,-Bstatic -lMMC_APP_LIB -lMMCPPLIB -Wl,-Bdynamic -lpthread -lrt
libs\thread\src\pthread\*once.o*: In function
`boost::thread_detail::enter_once_region(boost::once_flag&)':
D:\Projekte\FXT_PMAS_v0\src\PLATINUM_D/..\libs\thread\src\pthread\./once_atomic.cpp:36:
multiple definition of
`boost::thread_detail::*enter_once_region*(boost::once_flag&)'
libs\thread\src\pthread\once_atomic.o:D:\Projekte\FXT_PMAS_v0\src\PLATINUM_D/..\libs\thread\src\pthread/*once_atomic.cpp:36:
first defined here*
libs\thread\src\pthread\once.o: In function
`boost::thread_detail::commit_once_region(boost::once_flag&)':
D:\Projekte\FXT_PMAS_v0\src\PLATINUM_D/..\libs\thread\src\pthread\./once_atomic.cpp:69:
multiple definition of
`boost::thread_detail::*commit_once_region*(boost::once_flag&)'
libs\thread\src\pthread\once_atomic.o:D:\Projekte\FXT_PMAS_v0\src\PLATINUM_D/..\libs\thread\src\pthread/*once_atomic.cpp:69:
first defined here*
libs\thread\src\pthread\once.o: In function
`boost::thread_detail::rollback_once_region(boost::once_flag&)':
D:\Projekte\FXT_PMAS_v0\src\PLATINUM_D/..\libs\thread\src\pthread\./once_atomic.cpp:79:
multiple definition of
`boost::thread_detail::*rollback_once_region*(boost::once_flag&)'
libs\thread\src\pthread\once_atomic.o:D:\Projekte\FXT_PMAS_v0\src\PLATINUM_D/..\libs\thread\src\pthread/*once_atomic.cpp:79:
first defined here*
collect2.exe: error: ld returned 1 exit status

--
Sent from: http://boost.2283326.n4.nabble.com/Boost-Build-f2685023.html

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