This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Compilation problem on Suse 8.1 with gcc 3.2
- From: "Jean Acheroy" <Jean dot Acheroy at curia dot eu dot int>
- To: <gcc at gcc dot gnu dot org>,<gcc at gnu dot org>
- Date: Thu, 05 Dec 2002 08:02:39 +0100
- Subject: 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