egcs 1.1b problem on linux
Jeffrey A Law
law@cygnus.com
Sat Oct 31 01:47:00 GMT 1998
In message <19980907223757.54705@hera.rbi.informatik.uni-frankfurt.de>you wri >
> Hi,
>
> I have a problem using egcs 1.1b on linux 2.0.31 (libc 5.x / gnulibc1,
> identified as i586-pc-linux-gnulibc1)
>
> The wait() macros, like WIFEXITED(), don't work. Here's a small test
> program:
>
> #include <sys/wait.h>
> int main ()
> {
> int status;
> WIFEXITED(status);
> return 0;
> }
>
> The macro ultimately resolves to
>
> ((( (__extension__ ({ union { __typeof( status ) __in; int __i; } __u;
> \
> __u.__in = ( status ); __u.__i; })) ) & 0xff) == 0) ;
>
> egcs then complains
>
> test.cc: In function `int main()':
> test.cc:6: `status' undeclared (first use this function)
> test.cc:6: (Each undeclared identifier is reported only once
> test.cc:6: for each function it appears in.)
> test.cc:6: warning: ANSI C++ forbids declaration `__in' with no type
This has been fixed for the upcoming egcs-1.1.1 release.
jeff
More information about the Gcc-bugs
mailing list