This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

gcc_ppc error - deque - virtual functions are abstract


Hi,

I am using std::stack<int> teststack    (second parameter is deque -
default)
The following error occurs during compilation with gcc_ppc compiler(gcc 3.0)
- dinkumware libraries.
The error comes only with gcc_ppc compiler and not with gcc compiler.  
The problem persists (error in deque) even if std::list was used ( typedef
std::stack < int, std::list < int > > liststack; ). 
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

Thanks in advance,
Sujatha


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