From: Dikshit Saumya-G19445 Date: 2006-08-30T19:57:20+09:00 Subject: Calling method defined in ruby script Can I call a method defined in ruby script from a C code by just loading the script. My C snippet looks like: ruby_init(); ruby_init_loadpath(); rb_load_file("c.rb"); rb_funcall(self, rb_intern("my_rout"), 0); The ruby script c.rb has a single method defined: def my_rout puts 'I am the king' end When I execute it gives me the following error: c.rb:13: [BUG] Segmentation fault ruby 1.8.1 (2003-12-25) [i686-linux] Killed Regards, Saumya.