On May 16, 2011, at 07:53 , Martin Hansen wrote:

> Hi all,
>=20
>=20
> I am battling with RubyInline to try the following benchmark:
>=20
> http://pastie.org/1910786
>=20
> However, it it appears that I am not allowed to define stuff or
> initialize an array at the top level in C.
>=20
> How do I get this to work?

builder.c is ONLY for a C function.

Define static declarations and the like with builder.prefix or =
builder.add_static.

ri Inline::C for more info.