This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Large files on newlib
- From: Ramón Solano <rsolano_ at hotmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Mon, 10 May 2004 13:59:32 -0500
- Subject: Large files on newlib
- Bcc:
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
_________________________________________________________________
Visita MSN Latino Entretenimiento: ¡música, cine, chismes y más...!
http://latino.msn.com/entretenimiento/