This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
std::stack -" virtual functions are abstract" error
- From: "Sujatha, Narayanan (IE10)" <Sujatha dot Narayanan at honeywell dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 5 Jul 2002 00:35:48 -0500
- Subject: std::stack -" virtual functions are abstract" error
Hi,
The following compilation error occurs when std::stack
was built with gcc_ppc compiler(gcc 3.0) - dinkumware libraries.
The error comes only with gcc_ppc compiler and not with gcc compiler.
The problem occurs (error in deque) in both cases stated below.
- std::stack<int> teststack; ( second parameter is
deque - default)
- std::stack < int, std::list < int > > liststack; ( second parameter -
std::list )
Kindly provide some solutions.
./Include/deque:634: cannot declare
parameter `_Where' to be of type `std::deque<_Ty, _Ax>::iterator'
./Include/deque:634: because the following
virtual functions are abstract:
./Include/deque:314: std::deque<_Ty,
_Ax>::iterator std::operator+(std::_Deque_val<_Ty,
_Ax>::_Alty::difference_type, const std::deque<_Ty, _Ax>::iterator&)
./Include/deque:670: cannot declare
parameter `_Where' to be of type `std::deque<_Ty, _Ax>::iterator'
./Include/deque:670: since type `
std::deque<_Ty, _Ax>::iterator' has abstract virtual functions
./Include/deque:676: cannot declare
parameter `_Where' to be of type `std::deque<_Ty, _Ax>::iterator'
./Include/deque:676: since type `
std::deque<_Ty, _Ax>::iterator' has abstract virtual functions
Regards,
Sujatha