From: Tim Hunter Date: 2009-10-12T22:13:34+09:00 Subject: Re: Does ruby.h overrides C "enum"? Iñaki Baz Castillo wrote: > Hi, writting a Ruby C extension (for 1.8 or 1.9) I get an error when > using > "enum": > > #include "ruby.h" > int void(void) { > enum kk {ONE, TWO, THREE}; // line 3 > } > > line 3: error: expected identifier before ‘(’ token > > > It doesn't occur if I quit "ruby.h". What is happening? > > Thanks. I think the compiler is complaining about your attempt to use "void" as a function name. "void" is a reserved word in C. -- Posted via http://www.ruby-forum.com/.