
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 C:\LOCAL\INCLUDE/boost/date_time/posix_time/time_formatters_limited.hpp(77): error: more than one operator "<<" matches these operands: function "std::basic_ostream<_E, _Tr>::operator<<(std::_Bool={bool={bool}}) [with _E=char, _Tr=std::char_traits<char>]" function "std::basic_ostream<_E, _Tr>::operator<<(short) [with _E=char, _Tr=std::char_traits<char>]" function "std::basic_ostream<_E, _Tr>::operator<<(unsigned short) [with _E=char, _Tr=std::char_traits<char>]" function "std::basic_ostream<_E, _Tr>::operator<<(int) [with _E=char, _Tr=std::char_traits<char>]" function "std::basic_ostream<_E, _Tr>::operator<<(unsigned int) [with _E=char, _Tr=std::char_traits<char>]" function "std::basic_ostream<_E, _Tr>::operator<<(long) [with _E=char, _Tr=std::char_traits<char>]" function "std::basic_ostream<_E, _Tr>::operator<<(unsigned long) [with _E=char, _Tr=std::char_traits<char>]" function "std::basic_ostream<_E, _Tr>::operator<<(float) [with _E=char, _Tr=std::char_traits<char>]" function "std::basic_ostream<_E, _Tr>::operator<<(double) [with _E=char, _Tr=std::char_traits<char>]" function "std::basic_ostream<_E, _Tr>::operator<<(long double) [with _E=char, _Tr=std::char_traits<char>]" operand types are: std::basic_ostream<char, std::char_traits<char>> << boost::posix_time::time_duration::fractional_seconds_type << frac_sec; ^ C:\LOCAL\INCLUDE/boost/date_time/posix_time/time_formatters_limited.hpp(140): error: more than one operator "<<" matches these operands: ...similar ^ C:\LOCAL\INCLUDE/boost/lexical_cast.hpp(156): error: no operator ">>" matches these operands operand types are: std::basic_stringstream<char, std::char_traits<char>, std::allocator<char>> >> boost::int64_t stream >> output && ^ detected during: instantiation of "bool={bool} boost::detail::lexical_stream<Target, Source>::operator>>(InputStreamable &) [with Target=boost::int64_t={__int64}, Source=boost::detail::array_to_pointer_decay<std::basic_string<char, std::char_traits<char> , std::allocator<char>>>::type, InputStreamable=boost::int64_t={__int64}]" at line 221 instantiation of "Target boost::lexical_cast<Target,Source>(const Source &) [with Target=boost::int64_t={__int64}, Source=std::basic_string<char, std::char_traits<char>, std::allocator<char>>::_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<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? -- Rob Marsden Gistix (Northern) Limited