Hi Vicente:<div><br></div><div>Thanks for the fast response.</div><div>Then there is a bug in documentation:</div><div><a href="http://www.boost.org/doc/libs/1_50_0/doc/html/chrono/users_guide.html">http://www.boost.org/doc/libs/1_50_0/doc/html/chrono/users_guide.html</a> </div><div><h6 style="text-align:left;margin:1em 0em 0.5em;font-weight:normal;font-style:italic;font-size:16px;font-family:sans-serif;background-color:rgb(255,255,255)"><a class="link" href="http://www.boost.org/doc/libs/1_50_0/doc/html/chrono/users_guide.html#chrono.users_guide.getting_started.install.building_an_executable_that_uses_boost_chrono_" style="text-decoration:none;color:rgb(0,0,0)">Building an Executable that Uses Boost.Chrono</a></h6> <p style="text-align:left;font-size:10pt;line-height:1.15;font-family:sans-serif;background-color:rgb(255,255,255)">In addition to link with the�<span class="bold"><strong>Boost.Chrono</strong></span>�library you need also to link with the�<span class="bold"><strong>Boost.System</strong></span>�library. Once�<span class="bold"><strong>Boost.System</strong></span>�will be configurable to be a header only using�<code class="computeroutput">BOOST_SYSTEM_INLINED</code>�you will no need to link with it.</p> Thanks,</div><div>Dmitriy.</div><div><br><br><div class="gmail_quote">On 6 July 2012 00:56, Vicente J. Botet Escriba <span dir="ltr"><<a href="mailto:vicente.botet@wanadoo.fr" target="_blank">vicente.botet@wanadoo.fr</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 05/07/12 19:20, Dmitriy Matison a �crit :<div><div class="h5"><br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi,<br> <br> On RHEL 5.5 Boost.Chrono 1.1.0 (Boost 1.47.0) fails to run in header only mode with header only Boost.System.<br> <br> This file can't be compiled:<br> <br> #define BOOST_SYSTEM_NO_DEPRECATED �// without it also error, but in [Boost.System]<br> #define BOOST_SYSTEM_INLINED<br> #define BOOST_CHRONO_HEADER_ONLY<br> <br> #include <boost/chrono.hpp><br> <br> int main() {<br> � � boost::chrono::steady_clock::<u></u>time_point start = boost::chrono::steady_clock::<u></u>now();<br> � � return 0;<br> }<br> <br> Error:<br> In function `boost::chrono::steady_clock::<u></u>now()':<br> boost/chrono/detail/inlined/<u></u>posix/chrono.hpp:85: undefined reference to `boost::system::system_<u></u>category()'<br> <br> Any comments from Chrono\System guys?<br> <br> <br> </blockquote></div></div> Hi,<br> <br> unfortunately the patch proposed to make Boost.System header only was not accepted.<br> <br> So even if Boost.Chrono is header-only it depends on a library that is not :(<br> <br> Best,<br> Vicente<br> ______________________________<u></u>_________________<br> Boost-users mailing list<br> <a href="mailto:Boost-users@lists.boost.org" target="_blank">Boost-users@lists.boost.org</a><br> <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/<u></u>mailman/listinfo.cgi/boost-<u></u>users</a><br> </blockquote></div><br></div>