I coded a new method within gc.c file defining as--


static VALUE rb_obj_ manualfree(){
    printf("Hello, I am Manualfree.Nice to meet you");
}


And calling this method from my *.rb file as-

   GC.manualfree();

But when I am running the code its giving me this error--

dougtest.rb:4: undefined method `manualfree' for GC:Module
(NoMethodError)

What do i need to do.. so that I can call the new function and print out
that message.

Regards
Tridib

-- 
Posted via http://www.ruby-forum.com/.