El Lunes, 12 de Octubre de 2009, Tim Hunter escribió: > 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. No no, that's a typo of mie when composing the mail. Imagine it's "int main(void)". -- Iaki Baz Castillo <ibc / aliax.net>