This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]