compilation for files > 2Gb
David Edelsohn
dje@watson.ibm.com
Thu Jan 25 09:48:00 GMT 2001
>>>>> BLATS writes:
BLATS> in fact, I would like to use the fopen and fclose function for files > 2Gb
BLATS> (it's not a C source > 2 Gb)
BLATS> I use squid and I don't know if a problem when my logs file reach 2Gb can
BLATS> occur
BLATS> Before I used cc on AIX with -D_LARGE_FILES option to compile squid
BLATS> now I would like to use gcc
BLATS> perhaps -D_FILE_OFFSET_BITS=64 or -D_LARGEFILE64_SOURCE answer to my
BLATS> request
Your question is ambiguous because we cannot tell if you are
asking about using GCC on *AIX* or GCC on *GNU/Linux*. On AIX, you would
use the same commandline macros (e.g., -D_LARGE_FILES). On GNU/Linux, you
need to use the appropriate glibc macros.
David
More information about the Gcc
mailing list