Re: Bug in sys/wait.h with C++

2012-02-08 Thread Corinna Vinschen
On Feb 8 07:37, Christian Franke wrote: > Christopher Faylor wrote: > >On Tue, Feb 07, 2012 at 08:39:46PM -0600, Yaakov (Cygwin/X) wrote: > >>Just came across an issue with in C++. STC: > >> > >>$ cat test.c > >>#include > >>#include > >>int main(void) { wait(NULL); return 0; } > >> > >>$ gcc -W

Re: Bug in sys/wait.h with C++

2012-02-07 Thread Christian Franke
Christopher Faylor wrote: On Tue, Feb 07, 2012 at 08:39:46PM -0600, Yaakov (Cygwin/X) wrote: Just came across an issue with in C++. STC: $ cat test.c #include #include int main(void) { wait(NULL); return 0; } $ gcc -Wall test.c $ gcc -x c++ -Wall test.c test.c: In function ???int main()???:

Re: Bug in sys/wait.h with C++

2012-02-07 Thread Christopher Faylor
On Tue, Feb 07, 2012 at 08:39:46PM -0600, Yaakov (Cygwin/X) wrote: >Just came across an issue with in C++. STC: > >$ cat test.c >#include >#include >int main(void) { wait(NULL); return 0; } > >$ gcc -Wall test.c > >$ gcc -x c++ -Wall test.c >test.c: In function ???int main()???: >test.c:2:27: e