From: Ammar Ali Date: 2010-12-24T19:45:49+09:00 Subject: Re: Making a C extension On Fri, Dec 24, 2010 at 12:23 PM, Chananya Freiman wrote: > Windows 7, Ruby 1.9.2. > > The code is just in an arbitrary folder, so I have to include it with > "require './file'" because otherwise Ruby can't find it. > > The error just says there's no such method in my module, here's a > snapshot of irb: > That tutorial is very old and out of date for 1.9.2. If you want to call the method as you did in the above irb session, then you should define the method with rb_define_module_function instead of rb_define_method. Please read the README.EXT which comes with the ruby source for a good overview of latest API. HTH, Ammar