Boost logo

Boost :

Subject: Re: [boost] [Review] Formal Review of Proposed Boost.ChronoLibrary Starts TOMORROW
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2010-11-11 11:57:45


> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
> On Behalf Of vicente.botet
> Sent: Thursday, November 11, 2010 4:18 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] [Review] Formal Review of Proposed
Boost.ChronoLibrary
> Starts TOMORROW
>
> ----- Original Message -----
> From: "Paul A. Bristow" <pbristow_at_[hidden]>
> To: <boost_at_[hidden]>
> 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_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk