This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Enabling g++ large file support - Solaris 2.7
- From: Jason Elbaum <Jason dot Elbaum at motorola dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 21 Mar 2002 15:28:43 +0200
- Subject: Enabling g++ large file support - Solaris 2.7
- Organization: Motorola Semiconductor Israel
Is it possible to configure gcc-2.95.2 to support large file I/O (>2GB)
in C++?
I'm running Solaris 2.7. Compiling the object files with `getconf
LFS_CFLAGS` successfully enables large file support for C's I/O
functions (fopen, etc), but I can't manage to open large files with
C++'s fstream classes.
I've tried rebuilding the compiler libraries with the LFS flags, but it
didn't seem to help.
Is this a known problem? Is there a known solution? Reverting to C I/O
isn't an option, and upgrading to gcc-3.0 would cause compatibility
problems for us (would it even help?).
I'd appreciate any tips people might have.
Thanks,
Jason Elbaum
Jason.Elbaum@motorola.com