This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problem using LargeFiles with GCC
- From: Ravi Kumar Bhattiprolu <ravikb at miel dot mot dot com>
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>, "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 26 Apr 2002 16:10:23 +0530
- Subject: Problem using LargeFiles with GCC
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