Boost logo

Boost Users :

From: Andre du Toit (adutoit_at_[hidden])
Date: 2003-05-21 13:45:25


Ahem, could someone please answer my simple question:

Is is possible to compile programs which use Boost and STLPort (instead
of Microsoft Foundation Classes) with the Intel compiler, on Windows?

I am getting all kinds of weird errors which relate to streaming
operators, which makes me think that my usage of STLPort might be
involved? On the other hand, if I use MSCV6 instead of Intel compiler
(7.0) I do not get the same errors. It seems that some of our in-house
software can't be compiled with MSVC6 because of problems this specific
compiler has with templates. The same code compiles without problem on
the latest GCC compilers.

My latest source of joy is the following (about which I am totally
clueless) :

C:\PROGRAM FILES\BOOST_1_30_0\boost/lexical_cast.hpp(147): error: no
operator "<<" matches these operands
            operand types are: std::basic_stringstream<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t>> << const
std::basic_string<char, std::char_traits<char>, std::allocator<char>>
                  return stream << input;
                                ^
          detected during:
            instantiation of "bool={bool}
boost::detail::lexical_stream<Target, Source>::operator<<(const Source
&) [with Target=unsigned short, Source=std::basic_string<char,
std::char_traits<char>, std::allocator<char>>]" at line 192
            instantiation of "Target
boost::lexical_cast<Target,Source>(Source) [with Target=unsigned short,
Source=std::basic_string<char, std::char_traits<char>,
std::allocator<char>>]" at line 30 of "C:\PROGRAM
FILES\BOOST_1_30_0\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]"
C:\PROGRAM FILES\BOOST_1_30_0\boost/lexical_cast.hpp(153): 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=std::basic_string<char,
std::char_traits<char>, std::allocator<char>>, InputStreamab
le=boost::int64_t={__int64}]" at line 192
            instantiation of "Target
boost::lexical_cast<Target,Source>(Source) [with
Target=boost::int64_t={__int64}, Source=std::basic_string<char,
std::char_traits<char>, std::allocator<char>>]" at line 47 of
"C:\PROGRAM FILES\BOOST_1_30_0\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]"

Greetings,
Andre.


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