From: Jon Smirl Date: 2005-12-12T12:10:42+09:00 Subject: Re: Embedded Ruby into C On 12/11/05, Joe Van Dyk wrote: > On 12/11/05, Joe Van Dyk wrote: > > Anyone got any good resources on embedding C into Ruby? The ones I > > found were a couple years old (i.e. for 1.6). > > > > What I'd like to do is be able to call Ruby functions from the C code > > (don't care about return value here), and be able to call C functions > > (and get the return data) from the Ruby code. > > I created a Ruby extension in C called 'functions.so'. My ruby script > is require'ing it. > > When I launch the Ruby script via ruby_run() in C, I get 'no such file > to load -- functions' error. The source code from the book is here: http://www.pragmaticprogrammer.com/titles/ruby/code/index.html The examples from "Extending Ruby" may help. > > Any ideas? > > -- Jon Smirl jonsmirl@gmail.com