Re: [Boost-bugs] [Boost C++ Libraries] #7045: Thread library does not automatically compile date_time

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7045: Thread library does not automatically compile date_time
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-18 10:06:31


#7045: Thread library does not automatically compile date_time
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: viboes
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.50.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by viboes):

 Replying to [comment:27 zhnmju123@…]:
> {{{
> Do you have any suggestion on how to make it work?
> }}}
> I had hoped you would know :) I guess its simply realized via the
> {{{
> #pragma comment(lib, "libboost_system-vc110-mt-s-1_50.lib")
> }}}
> technique. And in the thread lib this entry is missing in the
 implementation file.
>
> Boost calls this feature "automatic library selection" and it's a huge
 boon that simplifies visual studio projects:
>
 [http://www.boost.org/doc/libs/1_48_0/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.macros_for_libraries_with_separate_source_code.automatic_library_selection]


 I know that, and Boost.Thread uses it, but it forces just to link with
 boost_thread. I have checked Boost.System, Boost.DateTime and Boost.Chrono
 and all of them use the same technique, but may be there is a file that is
 missing the include.
 Could you point to the file you are including that makes the linker fail?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7045#comment:28>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC