This is the mail archive of the gcc@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]

Compilation problem on Suse 8.1 with gcc 3.2


** High Priority **

I have the following code
//.....
   fstream  * thefile;
  unsigned long pktPos;
//....
  thefile->rdbuf()->seekpos((streampos) pktPos, ios::in);
//....
produce the following error at the compilation time:
/usr/include/g++/fstream: In member function `int wpfile::readpktType(wpout*)':
/usr/include/g++/fstream:187: `_Traits::pos_type std::basic_filebuf<_CharT, 
   _Traits>::seekpos(_Traits::pos_type, std::_Ios_Openmode = (std::ios_base::in 
   | std::ios_base::out)) [with _CharT = char, _Traits = 
   std::char_traits<char>]' is protected
wp5reader.cpp:248: within this context

All work fine with gcc 2.xx (under linux or cygwin) and MSVC5 (under Windows version xx)!
Is it some compatibility switch or option for the compilation ?

Could you help me !

Thanks !

Jean Acheroy


Acheroy Jean-Pierre

Section O & M
Direction de la Traduction
Cour de Justice des Communautés Européennes
Bâtiment T, bureau 2133
Tel : 4303 2648
Mail : Jean.Acheroy@curia.eu.int


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