ok....that all makes sense, but when I write the following test ruby
program:

class A
  def test()
    puts "rah"
  end
end

and the following c:

#include "ruby.h"

void main()
{
 VALUE classy;
 ID function;

 ruby_init();

 ruby_script("embedded");
 rb_load_file("test.rb");

 classy=rb_const_get(rb_cObject,rb_intern("A"));
 function=rb_intern("test");
 rb_funcall(classy,function,0);
}

the program crashes on the rb_const_get line and I have no idea why..