GCC error with #include <vector>
Philip Axer
paxer at nyware.de
Sun Jan 22 17:18:06 UTC 2006
Hi,
I'm using gcc-Version 4.0.2 20050808 (prerelease) (Ubuntu
4.0.1-4ubuntu9) after including the std vector file I'm getting these
compiler errors:
/usr/include/c++/4.0.2/bits/stl_bvector.h: In member function »void
std::vector< bool, _Alloc>::_M_insert_range(std::_Bit_iterator,
_ForwardIterator, _ForwardIte rator, std::forward_iterator_tag)«:
/usr/include/c++/4.0.2/bits/stl_bvector.h:542: Fehler: expected
unqualified-id b efore »(« token
/usr/include/c++/4.0.2/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.0.2/bits/stl_bvector.h:889: Fehler: expected
unqualified-id b efore »(« token
/usr/include/c++/4.0.2/bits/vector.tcc: In member function »void
std::vector<_Tp ,
_Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename
_Alloc::pointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&)«:
/usr/include/c++/4.0.2/bits/vector.tcc:353: Fehler: expected
unqualified-id befo re »(« token
/usr/include/c++/4.0.2/bits/vector.tcc: In member function »void
std::vector<_Tp ,
_Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename
_Alloc::pointer , std::vector<_Tp, _Alloc> >, _ForwardIterator,
_ForwardIterator, std::forward_i terator_tag)«:
/usr/include/c++/4.0.2/bits/vector.tcc:452: Fehler: expected
unqualified-id befo re »(« token
It seams that std::max is not declared. I have no vector specific code,
everything is commented out. What am I doing wrong?
Philip
More information about the ubuntu-users
mailing list