egcs 1.1b problem on linux

Frank Pilhofer fp@informatik.uni-frankfurt.de
Mon Sep 7 15:53:00 GMT 1998


  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


	Frank

-- 
 + Frank Pilhofer                        fp@informatik.uni-frankfurt.de  +
 |                                      http://www.uni-frankfurt.de/~fp/ |
 +---- Life would be a very great deal less weird without you.  - DA ----+




More information about the Gcc-bugs mailing list