Web lists-archives.org

[Mingw-users] MINGW I/O support for file sizes > 2GB (LFS support)




Hello,

I would like to build MINGW compiled applications with support for file
sizes > 2GB. How do I do this
using the mingw compiler on a WinXP system.?  I have attempted to
compile my program with the following
definitions for the compile:

-DLARGEFILES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

But I get the error message (under MSYS):

gcc -O2 -DCPU_LITTLE_END -mms-bitfields -malign-double -DG_OS_WIN32
-DLARGEFILES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMSDOS -shared
-I/usr/local/include SWAP_io.c -c

gcc -shared SWAP_io.o -L. -L/usr/local/lib  -o libSWAP.dll

SWAP_io.o:SWAP_io.c:(.text+0x181f): undefined reference to `fseeko'

collect2: ld returned 1 exit status
make: *** [libSWAP.dll] Error 1

Thanks for any suggestions or help here.

Thanks,
Charles Werer


-- 
Dr. Charles L. Werner
Gamma Remote Sensing AG
Worbstr. 225
CH-3073 Gümligen, Switzerland

Tel: +41 31 951 70 05
FAX: +41 31 951 70 08
http://www.gamma-rs.ch




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users