
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of vicente.botet Sent: Thursday, November 11, 2010 4:18 PM To: boost@lists.boost.org Subject: Re: [boost] [Review] Formal Review of Proposed Boost.ChronoLibrary Starts TOMORROW
----- Original Message ----- From: "Paul A. Bristow" <pbristow@hetp.u-net.com> To: <boost@lists.boost.org> Sent: Thursday, November 11, 2010 4:37 PM Subject: Re: [boost] [Review] Formal Review of Proposed Boost.ChronoLibrary Starts TOMORROW
I've started to play with this after starting to read the (nice) docs.
But I've come to a sudden halt on the "Hello World" :-(
Running it without has produced the (expected) warning that I haven't built the library yet)
LINK : fatal error LNK1104: cannot open file 'libboost_chrono-vc100-mt-gd-1_45.lib'
Assuming I could just try it out as header only first, (before I begin swearing at bjam ;-)
I've added
#define BOOST_CHRONO_INLINED
// run_timer_example.cpp ---------------------------------------------------//
#define BOOST_CHRONO_INLINED
#include <boost/chrono/process_times.hpp> #include <cmath> ...
But got a surprising list of errors:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(142): error C2008: '$' : unexpected in macro definition C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(294): error C2008: '$' : unexpected in macro definition C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(295): warning C4005: '__' : macro redefinition
What am I doing wrong?
Hi, currently Boost.Chrono in a header only library if Boosy.System it is also. You need have you defined BOOST_SYSTEM_INLINED?
I have now... #define BOOST_SYSTEM_INLINED #define BOOST_CHRONO_INLINED #include <boost/chrono/process_times.hpp> #include <cmath> produces the same output :-( I am including boost/trunk and boost/sandbox/chrono /Zi /nologo /W3 /WX- /Od /Oy- /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /GF- /Gm /EHsc /RTC1 /GS /fp:precise /Za /Zc:wchar_t /Zc:forScope /Fp"Debug\chrono_runtime.pch" /Fa"Debug\" /Fo"Debug\" /Fd"Debug\vc100.pdb" /Gd /analyze- /errorReport:queue Perhaps I need to build the library? Hopefully it won't hurt too much ;-) Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com