From: "Iñaki Baz Castillo" Date: 2011-07-14T21:16:19+09:00 Subject: Re: [Ruby/C] Very little piece of code driving me crazy 2011/7/14 Michael José : > #include "ruby.h" > #include > > using namespace std; > > int main(void) > { >  ruby_init(); >  VALUE test = Qnil; > >  test = rb_iv_get(test, "@lolwtf"); >  if (test == Qnil) >    cout << "It is Qnil indeed" << endl; >  VALUE a = rb_funcall(test, rb_intern("class"), 0); >  VALUE b = rb_funcall(a,    rb_intern("to_s"),  0); > >  cout << "Printing classname: " << endl; >  cout << RSTRING(b)->as.heap.ptr << endl; >  cout << "It didn't crash" << endl; >  return (0); > } Where does it crash? could you paste the output of the binary execution? -- Iñaki Baz Castillo