Large files on newlib

Ramón Solano rsolano_@hotmail.com
Mon May 10 21:12:00 GMT 2004


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/



More information about the Newlib mailing list