Berger, Daniel
2/23/2006 9:33:00 PM
> -----Original Message-----
> From: list-bounce@example.com
> [mailto:list-bounce@example.com] On Behalf Of Matt
> Sent: Thursday, February 23, 2006 2:23 PM
> To: ruby-talk ML
> Subject: C Extensions not working on Windows XP 64
>
>
> I can not for the life of me get even the simplest C
> extension example
> to load into ruby on Windows XP.
<snip>
> void Init_simple()
> {
>
> csimple = rb_define_class("simple",rb_cObject);
<snip>
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