Skip to content

Instantly share code, notes, and snippets.

@cwoodcox
Created July 19, 2012 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwoodcox/3139847 to your computer and use it in GitHub Desktop.
Save cwoodcox/3139847 to your computer and use it in GitHub Desktop.
stirng.c:98:3: error: no matching function for call to 'rb_define_module_function'
rb_define_module_function(stirng_module, "distance", stirng_distance, 2);
^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/cwoodcox/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby/ruby.h:1101:6: note: candidate function not viable: no known conversion from 'VALUE (VALUE, VALUE)' to 'VALUE (*)(...)' for 3rd argument;
void rb_define_module_function(VALUE,const char*,VALUE(*)(ANYARGS),int);
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment