This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g++ -D_LARGE_FILES=1 on AIX 5.3
- From: Albert Chin <gcc-help at mlists dot thewrittenword dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 22 Feb 2006 17:39:24 -0600
- Subject: Re: g++ -D_LARGE_FILES=1 on AIX 5.3
- References: <20060222233256.GD9079@mail1.thewrittenword.com>
- Reply-to: gcc-help at gcc dot gnu dot org
On Wed, Feb 22, 2006 at 05:32:56PM -0600, Albert Chin wrote:
> Using gcc 4.0.2 on AIX 5.3:
> $ cat a.cxx
> #include <iostream>
> $ g++ -D_LARGE_FILES=1 -c a.cxx
> /opt/TWWfsw/gcc402/include/c++/cstdio:108: error: '::fgetpos' has not been declared
> /opt/TWWfsw/gcc402/include/c++/cstdio:110: error: '::fopen' has not been declared
> /opt/TWWfsw/gcc402/include/c++/cstdio:115: error: '::freopen' has not been declared
> /opt/TWWfsw/gcc402/include/c++/cstdio:118: error: '::fsetpos' has not been declared
>
> Compiling without -D_LARGE_FILES=1 works but why does building with
> -D_LARGE_FILES=1 cause a problem? Maybe because of the following in
> <stdio.h>:
> #ifdef _LARGE_FILES
> #define fseeko fseeko64
> #define ftello ftello64
> #define fgetpos fgetpos64
> #define fsetpos fsetpos64
> #define fopen fopen64
> #define freopen freopen64
> #endif /* _LARGE_FILES */
Actually, looks like this might be a bug because earlier in cstdio,
the above #defines are #undef'ed.
--
albert chin (china@thewrittenword.com)