This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-2.95.2
I have seen something like .... in my case, I was missing the _D_GNU_SOURCE .
For more info check /usr/include/features.h, to get the right flavor..
hope it helps
Agung Yogaswara wrote:
> I have gcc-2.95.2 installed with glibc-2.2 updated for Red Hat 7.0 plus
> the patch. But I got this error when compiling a program:
>
> In file included from
> /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3/iostream.h:31,
> from
> /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3/iostream:6,
> from ../include/JTC/Types.h:58,
> from Cond.cpp:11:
> /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h: In
> method `struct streampos streambuf::pubseekoff(long long int,
> ios::seek_dir, int = 3)':
> /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h:362: conversion
> from `__off64_t' to non-scalar type `streampos' requested
> /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h: In
> method `struct streampos streambuf::pubseekpos(_G_fpos64_t, int = 3)':
> /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h:364: `struct
> streampos' used where a `long long int' was expected
>
> In file included from Cond.cpp:28:
> /usr/include/sys/time.h: At top level:
> /usr/include/sys/time.h:69: two or more data types in declaration of
> `__tz'
>
> Any ideas?
>
> Thanks