Compilation problem on Suse 8.1 with gcc 3.2
Jean Acheroy
Jean.Acheroy@curia.eu.int
Wed Dec 4 23:02:00 GMT 2002
** 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
More information about the Gcc
mailing list