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-13 15:09:13
#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 anonymous):
The problem is actually deeper than expected:
1. create new MSVC 10 or 11 console project and add boost include and
linker paths
2.
{{{
#include <boost/thread/tss.hpp>
}}}
3. add global variable
{{{
boost::thread_specific_ptr<std::wstring> msg;
}}}
4. compile and link
5. linker error
{{{
1>------ Erstellen gestartet: Projekt: ConsoleApplication4, Konfiguration:
Debug Win32 ------
1>Der Buildvorgang wurde am 13.08.2012 17:00:54 gestartet.
1>InitializeBuildStatus:
1> Aktualisieren des Timestamps von
"Debug\ConsoleApplication4.unsuccessfulbuild".
1>ClCompile:
1> Alle Ausgaben sind aktuell.
1>libboost_thread-vc110-mt-gd-1_50.lib(thread.obj) : error LNK2019:
Verweis auf nicht aufgelöstes externes Symbol ""public: static class
boost::chrono::time_point<class boost::chrono::system_clock,class
boost::chrono::duration<__int64,class boost::ratio<1,10000000> > > __cdecl
boost::chrono::system_clock::now(void)"
(?now_at_system_clock_at_chrono@boost@@SA?AV?$time_point_at_Vsystem_clock_at_chrono@boost@@V?$duration@_JV?$ratio@$00$0JIJGIA@@boost@@@23@@23_at_XZ)"
in Funktion ""public: bool __thiscall boost::thread::try_join_until(class
boost::chrono::time_point<class boost::chrono::system_clock,class
boost::chrono::duration<__int64,class boost::ratio<1,1000000000> > > const
&)"
(?try_join_until_at_thread@boost@@QAE_NABV?$time_point_at_Vsystem_clock_at_chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@chrono_at_2@@Z)".
1>c:\users\zenju\documents\visual studio
11\Projects\ConsoleApplication4\Debug\ConsoleApplication4.exe : fatal
error LNK1120: 1 nicht aufgelöste Externe
1>
1>Fehler beim Buildvorgang.
1>
1>Verstrichene Zeit 00:00:00.16
========== Erstellen: 0 erfolgreich, 1 fehlerhaft, 0 aktuell, 0
übersprungen ==========
}}}
=> there is obviously a bug in the boost dependency management. Both when
building the boost package and even later when linking a project the
depedency of boost::thread from boost::chrono is not detected.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7045#comment:23> 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