This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Compile errors using sstream
- From: Kurt Kohler <kohler at ao dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 25 Jan 2008 16:37:24 -0800 (PST)
- Subject: Compile errors using sstream
When I include <sstream> (which I've done before in other files) I get the
following compile errors:
/usr/include/c++/4.1.3/bits/stl_bvector.h: In member function âvoid
std::vector<bool, _Alloc>::_M_insert_range(std::_Bit_iterator,
_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)â:
/usr/include/c++/4.1.3/bits/stl_bvector.h:542: error: expected
unqualified-id before â(â token
/usr/include/c++/4.1.3/bits/stl_bvector.h: In member function âvoid
std::vector<bool, _Alloc>::_M_fill_insert(std::_Bit_iterator, size_t,
bool)â:
/usr/include/c++/4.1.3/bits/stl_bvector.h:897: error: expected
unqualified-id before â(â token
/usr/include/c++/4.1.3/bits/vector.tcc: In member function âvoid
std::vector<_Tp,
_Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp,
_Alloc> >, size_t, const _Tp&)â:
/usr/include/c++/4.1.3/bits/vector.tcc:353: error: expected unqualified-id
before â(â token
/usr/include/c++/4.1.3/bits/vector.tcc: In member function âvoid
std::vector<_Tp,
_Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp,
_Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)â:
/usr/include/c++/4.1.3/bits/vector.tcc:452: error: expected unqualified-id
before â(â token
/usr/include/c++/4.1.3/bits/stl_deque.h: In member function âvoid
std::_Deque_base<_Tp, _Alloc>::_M_initialize_map(size_t)â:
/usr/include/c++/4.1.3/bits/stl_deque.h:469: error: expected unqualified-id
before â(â token
/usr/include/c++/4.1.3/bits/deque.tcc: In member function âvoid
std::deque<_Tp, _Alloc>::_M_reallocate_map(size_t, bool)â:
/usr/include/c++/4.1.3/bits/deque.tcc:747: error: expected unqualified-id
before â(â token
It looks like the underlying problem is that it can't find std::max.
Any idea what I might be doing wrong?
I can send a bit of my code if it would help.
--
View this message in context: http://www.nabble.com/Compile-errors-using-sstream-tp15100003p15100003.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.