compilation failed with error due to boost thread library

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

compilation failed with error due to boost thread library

Boost - Build mailing list
Hello,

the compilation of my library failed with the following error:

make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_coroutine.a(stack_traits.o): undefined reference to symbol '_ZN5boost13thread_detail18commit_once_regionERNS_9once_flagE'
/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

What do you think can be the source of error? It used to compile well before...

Cheers,
Jack

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: compilation failed with error due to boost thread library

Boost - Build mailing list
Le 08/03/2017 à 19:43, Jack Kumba via Boost-build a écrit :

> Hello,
>
> the compilation of my library failed with the following error:
>
> make[1]: *** Waiting for unfinished jobs....
> /usr/bin/ld:
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_coroutine.a(stack_traits.o):
> undefined reference to symbol
> '_ZN5boost13thread_detail18commit_once_regionERNS_9once_flagE'
> /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0: error adding
> symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
>
> What do you think can be the source of error? It used to compile well
> before...
>

Could you check if BOOST_THREAD_ONCE_ATOMIC is defined on your environment?

I wonder that you are linking with a thread library that was built with
BOOST_THREAD_ONCE_ATOMIC undefined and your application see it defined.

Best,
Vicente

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build