This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]