A
Alex Maccaw
Ok, so I'm using C++ in a project called Titanium and trying to evaluate
Ruby (1.9).
The code looks something like this:
ruby_init();
ruby_init_loadpath();
rb_set_safe_level(0);
ruby_script("ruby");
rb_eval_string_protect(code, &error);
So, this can parse Ruby fine, the only issue is when I require the mutex
lib (needed by Rubygems).
The error I get is: undefined method `synchronize' for #<Mutex:0x1f8cf4>
It looks like the mutex class (which is written in C) isn't getting
loaded properly. Anybody got any ideas as to why?
Ruby (1.9).
The code looks something like this:
ruby_init();
ruby_init_loadpath();
rb_set_safe_level(0);
ruby_script("ruby");
rb_eval_string_protect(code, &error);
So, this can parse Ruby fine, the only issue is when I require the mutex
lib (needed by Rubygems).
The error I get is: undefined method `synchronize' for #<Mutex:0x1f8cf4>
It looks like the mutex class (which is written in C) isn't getting
loaded properly. Anybody got any ideas as to why?