From: ts Date: 2004-10-30T19:10:20+09:00 Subject: Re: embedding, 'require' and extensions >>>>> "P" == Phil Tomson writes: P> Here is the relevant part of the C-side code: You don't give the most important part : how do you build your executable ? You must use the value given in rbconfig.rb to build the command line, in your case you've probably forgotten -rdynamic when you have compiled your source. Another thing P> rb_require("sum.rb"); //ruby script is sum.rb You *must* protect any call to a ruby function which can generate an error, with rb_protect(), otherwise ruby will crash Guy Decoux