2011/7/14 Michael Jos <sexymimi64 / gmail.com>: > #include "ruby.h" > #include <iostream> > > 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? -- Iaki Baz Castillo <ibc / aliax.net>