Boost logo

Boost Users :

From: dick.bridges_at_[hidden]
Date: 2003-07-24 12:11:35


<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 <boost/date_time/gregorian/gregorian.hpp>
//#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>

avoids the error message.

Changing it back to:

#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
//#include <boost/date_time/posix_time/posix_time_types.hpp>

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<TokenizerFunc,Iterator,Type>::value_type'
(or there is no acceptable conversion)
        with
        [
            TokenizerFunc=boost::char_delimiters_separator<char>,

Iterator=std::basic_string<char,std::char_traits<char>,std::allocator<char>>::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<Target,Source>::operator <<(const Source &)'
        with
        [
            Target=unsigned short,

Source=boost::token_iterator_generator<boost::char_delimiters_separator<char>,std::basic_string<char,std::char_traits<char>,std::allocator<char>>::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<Target,Source>' being compiled
        with
        [
            Target=unsigned short,

Source=boost::token_iterator_generator<boost::char_delimiters_separator<char>,std::basic_string<char,std::char_traits<char>,std::allocator<char>>::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<unsigned
short,boost::token_iterator_generator<TokenizerFunc,Iterator,Type>::value_type>(Source)'

being compiled
        with
        [
            Target=unsigned short,
            TokenizerFunc=boost::char_delimiters_separator<char>,

Iterator=std::basic_string<char,std::char_traits<char>,std::allocator<char>>::const_iterator,
            Type=std::string,

Source=boost::token_iterator_generator<boost::char_delimiters_separator<char>,std::basic_string<char,std::char_traits<char>,std::allocator<char>>::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_duration<boost::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<typename Target, typename Source>
    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.


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