Boost logo

Boost Users :

From: Serge Skorokhodov (serge.skorokhodov_at_[hidden])
Date: 2006-11-06 10:33:12


Hello, Cheng,!
You wrote on Mon, 6 Nov 2006 09:25:27 -0500:

 CVS> compiler messages:

 1>> .\t2.cpp(18) : error C2653: 'microsec_clock' : is not a class or
 CVS> namespace name
 1>> .\t2.cpp(18) : error C3861: 'local_time': identifier not found

 CVS> the code:

 CVS> #include "boost/date_time/posix_time/posix_time.hpp"
 CVS> #include <iostream>
 CVS> int
 CVS> main()
 CVS> {
 CVS> using namespace boost::posix_time;
 CVS> ptime now = microsec_clock::local_time();
 CVS> std::cout << now << std::endl;
 CVS> return 0;
 CVS> }

I encounter a rather strange problem building boost with MSVC 7.1 sp1 on my
Win32 machine too. If I start bjam in comand line window then I run into
various compilation errors while building boost.1.33.1, RC_1_34_0 cvs and
cvs HEAD (1.35.0). If I redirect bjam output to a file with ">" command
everything works just fine. Really strange and I don't know why. Hope this
helps.

[Sorry, skipped]

With best regards, Serge Skorokhodov. E-mail: serge.skorokhodov_at_[hidden]


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net