Re: syntax error before 'cid_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

Ed L. wrote :
$ cat s.c
#include <sys/ipc.h>

$ gcc -c s.c
In file included from s.c:1:
/usr/include/sys/ipc.h:51: error: syntax error before 'cid_t'
/usr/include/sys/ipc.h:56: error: syntax error before '}' token
Works here. gcc 3.3; HP-UX 11.11 on PA-RISC 2.0.

What about :

 gcc -DXOPEN_SOURCE -c s.c

Otherwise, look at the offending line in ipc.h (which is a system include btw) and see if there is no #ifdef/#endif that could give a hnint on why it doesn't compile with gcc.

HTH,
Cheers,
Olivier.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux