From: Tridib Bandopadhyay Date: 2011-03-29T09:19:40+09:00 Subject: Re: Method Call from inside a file. Okay i searched everywhere in Google but they are suggesting me to create a new "extconf.rb" file which looks very confusing to me. Now my code looks like this under gc.c file.> void Init_Test(); static VALUE rb_obj_ manualfree(); VALUE manual = Qnil; static VALUE rb_obj_ manualfree(){ printf("Hello, I am Manualfree.Nice to meet you"); } void Init_Test(){ rb_define_method(manual,"test",manualfree,0); } And I am calling the manualfree function like> GC.manual(); But its giving me the same error... dougtest.rb:4: undefined method `manualfree' for GC:Module (NoMethodError) What else should I have to do? Tridib -- Posted via http://www.ruby-forum.com/.