once_atomic.cpp, "first defined here" issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

once_atomic.cpp, "first defined here" issue

Boost - Build mailing list
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
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build