This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch draft] Fix libstdc++/8610
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 21 Oct 2003 14:19:55 +0200
- Subject: Re: [Patch draft] Fix libstdc++/8610
- References: <hosmlm24b9.fsf@reger.suse.de>
Andreas Jaeger wrote:
Are we compiling with -D_GNU_SOURCE ? I think we do - and therefore
it works in libstdc++. If _GNU_SOURCE is set, we do not eed the
LARGEFILE64_SOURCE. But the latter might be needed for other
platforms.
Indeed, we are. Thanks for your enlightening observation.
If, instead, I do:
paolo:~> g++ -U_GNU_SOURCE no-proto.cc
no-proto.cc: In function `int main()':
no-proto.cc:5: error: `lseek64' undeclared (first use this function)
no-proto.cc:5: error: (Each undeclared identifier is reported only once
for each function it appears in.)
However, I'm not sure to understand what you mean by "other platforms":
I mean, libstdc++-v3 only comes with the corresponding g++, cannot be
used stand alone.
Another (reassurring) data point: you cannot actually use v3 with
-U_GNU_SOURCE: *many* things break well before lseek64 ;)
Paolo.