Forum: Ruby Re: C Extensions not working on Windows XP 64

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F3b7b8756d0c7f71cc7460cc33aefaee?d=identicon&s=25 Berger, Daniel (Guest)
on 2006-02-23 22:34
(Received via mailing list)
> 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
This topic is locked and can not be replied to.