On Sun, 01 Jan 2006 22:55:39 +0000, Rob Marsden wrote
I am having trouble with some date_time files. The following code (from the boost documentation):
#include "boost/date_time/posix_time/posix_time.hpp" #include "boost/date_time/local_time_adjustor.hpp" #include "boost/date_time/c_local_time_adjustor.hpp" #include <iostream>
int main() { return(0); }
gives me errors
...snip details...
Source=std::basic_string
::_Myt]" at line 94 of "C:\LOCAL\INCLUDE/boost /date_time/time_parsing.hpp" instantiation of "time_duration boost::date_time::parse_delimited_time_duration (const std::string &) [with time_duration=boost::posix_time::time_duration]" compilation aborted for C:\Research\DogWood\TextAnalysis\Parser\BoostTest\BoostTest.cpp (code 2) Error executing xicl6.exe.
The environment is compiler Intel v9.0 in the VC6 IDE under Win2k
Can anyone suggest a solution?
Hi Rob - Sorry for the slow reply -- just got back from vacation :-) First question -- what version of boost are you using? time_parsing.hpp:94 in 1.33 is a comment. In any case, it appears that the compilation issue is that the standard library doesn't have an opeartor<< for the __int64 type that date-time is using internally. It's odd, b/c intel 9.0 passes all the regression tests, so I suspect there is some configuration setting that is different which you are not getting via the ide or perhaps this is in some sort of vc emulation mode? Jeff