You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This simple example in the tutorial section on the README page does not work.
extconf.rb
require'mkmf-rice'create_makefile('test')#should be Test?
test.cpp
#include"rice/Class.hpp"usingnamespaceRice;extern"C"voidInit_Test() {
Class rb_cTest = define_class("Test");
}
Running irb and running require './test' results in:
require './test'
LoadError: /home/lexruee/workspace/test-rice/test.so: undefined symbol: Init_test - /home/lexruee/workspace/test-rice/test.so
from /home/lexruee/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/lexruee/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from (irb):1
from /home/lexruee/.rvm/rubies/ruby-2.1.2/bin/irb:11:in `<main>'
In changing test to Test in the extconf.rb file and running irb with require './Test' solves the error.
require'mkmf-rice'create_makefile('Test')
The text was updated successfully, but these errors were encountered:
This simple example in the tutorial section on the README page does not work.
extconf.rb
test.cpp
Running irb and running
require './test'
results in:In changing
test
toTest
in the extconf.rb file and running irb withrequire './Test'
solves the error.The text was updated successfully, but these errors were encountered: