This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Large files on newlib
- From: Jeff Johnston <jjohnstn at redhat dot com>
- To: Ramón Solano <rsolano_ at hotmail dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Mon, 10 May 2004 17:12:52 -0400
- Subject: Re: Large files on newlib
- References: <BAY8-F31qkRse7lSqwN00006070@hotmail.com>
Ramón Solano wrote:
Hi all.
I'm trying to port a C code that handle with files over 2 GB to Cygwin
using gcc.
This code works fine on Linux (RedHat 9.0) using directly fopen64(),
ftello64() and fseeko64() with
-D_LARGEFILE_SOURCE and -D_LARGEFILE64_SOURCE gcc directives and
including sys/types.h and of course stdio.h, but in cygwin 1.5.7
(newlib) the system complains about the undefinition of off64_t. I can
correct this using _off64_t instead off64_t and compiles ok, but the
linker is unable to find the functions fopen64, etc..
Any help would be appreciate..
TIA
//R. Solano
Ramon,
You should post to the Cygwin mailing list. IIRC, Corinna Vinschen from the
Cygwin team specifically hid the f*64 interfaces and set up Cygwin so the
regular I/O calls handled 64-bit by default.
-- Jeff J.