<previous>
I must be missing one or more headers but I can't figure it out. Can
someone help get me pointed in the right direction?
...lots of compiler stuff omitted...
My guess is that you don't have the boost root directory in your include
path
options. This would be the boost\boost_1_30_0 directory....
HTH,
Jeff
</previous>
I'm pretty sure the headers are being found. If I replace posix_time.hpp
with posix_time_types.hpp, the error and many of the warnings disappear.
In other words...
#include
//#include
#include
avoids the error message.
Changing it back to:
#include
#include
//#include
results in...
<error>
c:\boost\boost_1_30_0\boost\lexical_cast.hpp(147) : error C2679: binary '
<<' : no operator found which takes a right-hand operand of type 'const
boost::token_iterator_generator::value_type'
(or there is no acceptable conversion)
with
[
TokenizerFunc=boost::char_delimiters_separator<char>,
Iterator=std::basic_string::const_iterator,
Type=std::string
]
c:\boost\boost_1_30_0\boost\lexical_cast.hpp(146) : while compiling
class-template member function 'bool
boost::detail::lexical_stream::operator <<(const Source &)'
with
[
Target=unsigned short,
Source=boost::token_iterator_generator::const_iterator,std::string>::value_type
]
c:\boost\boost_1_30_0\boost\lexical_cast.hpp(189) : see reference
to class template instantiation
'boost::detail::lexical_stream' being compiled
with
[
Target=unsigned short,
Source=boost::token_iterator_generator::const_iterator,std::string>::value_type
]
c:\boost\boost_1_30_0\boost\date_time\time_parsing.hpp(30) : see
reference to function template instantiation 'Target
boost::lexical_cast::value_type>(Source)'
being compiled
with
[
Target=unsigned short,
TokenizerFunc=boost::char_delimiters_separator<char>,
Iterator=std::basic_string::const_iterator,
Type=std::string,
Source=boost::token_iterator_generator::const_iterator,std::string>::value_type
]
c:
\boost\boost_1_30_0\boost\date_time\posix_time\time_parsers.hpp(18) : see
reference to function template instantiation 'time_duration
boost::date_time::parse_delimited_time_durationboost::posix_time::time_duration(const
std::string &)' being compiled
with
[
time_duration=boost::posix_time::time_duration
]
</error>
...which refers to lexical_cast.hpp
template
class lexical_stream
{
bool operator<<(const Source &input)
{
here ===> return stream << input; <==== here
}
}
So I assume there's a header somewhere that defines the '<<' operator
referred to. I don't know if this is related to my use of VC7.1 or not.
I'm trying to find someone around here with VC7 to build boost_1_30_0 and
see if that makes a difference. No luck so far.