Strange compiler error on AMD64 system
Compiler:
CC: Sun C++ 5.8 Patch 121018-04 2006/08/02
When compiling an application using stlport (-g -library=stlport4), each file produces the same error:
"/opt/studio11/SUNWspro/prod/include/CC/stlport4/stl/_stdio_file.h", line 97: Error: _file is not a member of const __FILE.
Biulding on a 32 bit system with the same compiler works.
Odd.
[379 byte] By [
Zootle] at [2007-11-26 10:05:39]

# 1
This problem was found earlier as bug #6445824, which has been fixed internally. I don't think the fix has yet been released in a patch. I believe the bug is visible at bugs.sun.com, so you can track progress yourself.
# 3
I updated the bug so that it should appear on bugs.sun.com. It might take 24 hours for the bug to be visible.
Unfortunately, there is no workaround for this bug. The STLport headers used an unportable interface to C stdio, and the problem was only recently discovered.
The fix is to edit the offending STLport files, which we do not encourage, to use fileno() instead of the unportable reference to the "file" member of the FILE struct.