Compilation problem on Suse 8.1 with gcc 3.2
Gabriel Dos Reis
gdr@integrable-solutions.net
Wed Dec 4 23:16:00 GMT 2002
"Jean Acheroy" <Jean.Acheroy@curia.eu.int> writes:
| ** High Priority **
No. See below.
| I have the following code
| //.....
| fstream * thefile;
| unsigned long pktPos;
| //....
| thefile->rdbuf()->seekpos((streampos) pktPos, ios::in);
^^^^^^^^
This function is defined by the C++ standard as protected. The
corresponding public equivalent is named pubseekoff
thefile->rdbuf()->pubseekoff(streambuf::pos_type(pktPos), ios::in)
Maybe this should be a FAQ, it is not the first time this question
pops up.
[...]
| All work fine with gcc 2.xx
The library shipped with 2.xx was not standard conformant. In
general, you should expect other changes as well. Please a consult a
reference book -- have a look at our website.
-- Gaby
More information about the Gcc
mailing list