I am trying to write my first Ruby extension.
It is the first example in “Programming Ruby” by David Thomas and Andrew Hunt.
The example is on page 173.
The “C” code calls the function
This function is not in my ruby.h file.
I download ruby version
1.6.6 2001-12-26 [i586-mswin32]
I get a linker error when compiling stating that
_rb_arr_new is an unresolved external symbol.
Is there something wrong with my distribution?
Where is the header declaration for rb_arr_new defined.
Where is rb_arr_new defined (libruby.lib? mswin32-ruby16.dll?)