This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: compilation for files > 2Gb
- To: BLATS at fr dot ibm dot com
- Subject: Re: compilation for files > 2Gb
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Thu, 25 Jan 2001 12:47:26 -0500
- cc: "Zack Weinberg" <zackw at stanford dot edu>, egcs at thewrittenword dot com, Jakub Jelinek <jakub at redhat dot com>, gcc at gcc dot gnu dot org
>>>>> 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