Problem using LargeFiles with GCC
Ravi Kumar Bhattiprolu
ravikb@miel.mot.com
Fri Apr 26 04:01:00 GMT 2002
Hi All,
I am using the follwing versions:
GCC Version :: 3.0.4
OS Version :: HPUX11.0/SunOS2.6/SunOS2.7
I have to parse files larger than 3 GB and I am using ifstream and Flex++ to
parse the files. When I compile using "g++ -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE myfile.cc" , I am getting lot of errors in the header
files. This was not the case with Ver2.95.2
Also in 2.95.2, the ifstream has a constructor which accepts file
descriptor. So, I was getting fd using open64 and passing it to ifstream.
But in Ver3.0.4, I do not find that constructor also.
Do anyone have any work around or solution to this problem.
PLEASE HELP.
thanks and regards,
Ravi
More information about the Gcc-bugs
mailing list