Subject: Re: [boost] Some library dependency and auto liker issues
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-08-20 16:21:58


Le Mon Aug 20 21:55:55 2012, Vicente J. Botet Escriba a écrit :
> Le 20/08/12 18:44, Andrey Semashev a écrit :
>> On Monday 20 August 2012 18:20:50 Vicente J. Botet Escriba wrote:
>>> Hi,
>>>
>>> there is an issue https://svn.boost.org/trac/boost/ticket/7045 that I
>>> don't know how to fix.
>>>
>>> The problem is related to library dependencies and auto-linker.
>>>
>>> * 2nd issue: Boost.Threads depends on Boost.Chrono and the library
>>> is linked
>>> with boost_chrono. When a user includes for example
>>> <boost/thread/tss.hpp>
>>> the autolinker doesn't detects the chrono dependency as this file don't
>>> depends on any file in boost/chrono. But as boost_thread depends on
>>> boost_chrono, the linker find some unresolved symbols.
>> Does it?
> Yes. At least when BOOST_THREAD_DONT_USE_CHRONO is not defined.
>> I thought Boost.Chrono-related code in Boost.Thread was header-only.
> No the dependent part uses system_clock::now() and steady_clock::now()
> indirectly.

Of course, I could move the function using now() to a header as an
inline function, which will solve this issue.

What do you think?
Vicente