Re: C Extensions not working on Windows XP 64


#1

to load into ruby on Windows XP.

void Init_simple()
{

csimple = rb_define_class(“simple”,rb_cObject);

Classes are constants. Change that line to:

csimple = rb_define_class(“Simple”, rb_cObject);

Then create an instance in Ruby with Simple.new.

Regards,

Dan