From: gga Date: 2007-01-17T23:50:11+09:00 Subject: Re: Ruby and E.V.E. Paradox > > My current code crashes (in the second rb_gc) with something of the form: > Post your ACTUAL code that crashes. init_ruby() does not exist as an api call in ruby, so we'll need to see source to that. If what you meant was something like this: /** * @file embed.cpp * @author gga * @date Wed Jan 17 11:40:27 2007 * * g++ -I/usr/lib/ruby/1.8/x86_64-linux embed.cpp -o embed -lruby1.8 * */ #include void a() { ruby_init(); rb_gc(); } void b() { rb_gc(); } int main(int argc, char **argv) { a(); b(); return 0; } I can tell you it works fine for me, so if that crashes for you may have a broken ruby or some .so dependency issue on your machine.