This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: compilation for files > 2Gb


BLATS@fr.ibm.com writes:

> Hi,
> 
> I would like to know if in gcc compilation option there is a option (like
> -D_LARGE_FILES in AIX wiht cc) in order to open file > 2Gb or
> gcc by default authorize the use of files > 2Gb

That depends on the C-Libary.  -D is used by GCC to define a value.

If you use the glibc 2.1.3 or newer on a Linux system, use:
-D_LARGEFILE_SOURCE

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]