This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: syntax error before 'cid_t'



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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]