From: "Iñaki Baz Castillo" Date: 2009-10-12T23:52:48+09:00 Subject: Re: Does ruby.h overrides C "enum"? El Lunes, 12 de Octubre de 2009, angico escribió: > Are you sure the typo was only in the mail? If I copy and paste this code > in a file and try to compile it, the compiler complains about the same > error, because void is a reserved keyword in C. But when I change that > "void(void)" into "main(void)" it compiles ok. ok, let's try it: file_a.c ---------------- int main(void) { enum kk {NULL=0, NS=1, URL=2}; } ---------------- It compiles ok. Now: file_b.c ---------------- #include int main(void) { enum kk {NULL=0, NS=1, URL=2}; } ---------------- $ gcc file_b.c file_b.c: In function ‘main’: file_b.c:3: error: expected identifier before ‘(’ token ¿?¿? PS: It seems to be a problem not related to Ruby. -- Iñaki Baz Castillo