Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass the test of float, but got "uninitialized constant Kernel::Foo (NameError)" with the latest mruby #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

t-nissie
Copy link

Dear Dr. Dorier,

Thank you for your simplification in mrubybind using C++14 variadic templates.
It is great!

I want to use mrubybind with the latest mruby.
I fixed test/test.sh to pass the test of float.
However, I got an error of "uninitialized constant Kernel::Foo (NameError)" as

$ git clone https://github.com/mruby/mruby.git
$ cd mruby
$ rake
$ cd ..
$ git clone https://github.com/mdorier/mrubybind.git
$ cd mrubybind/test
$ MRUBY=../../mruby make test
          :
Testing class ... (unknown):0: uninitialized constant Kernel::Foo (NameError)
[ERROR] exit status is not 0 [134]
          :

Can you please fix it?

A change in bind_class() in mrubybind.h
from MRB_SET_INSTANCE_TT(tc, MRB_TT_DATA);
to MRB_SET_INSTANCE_TT(tc, MRB_TT_CDATA);
could not cure the error.

Sincerely,
-- Takeshi Nishimatsu

@t-nissie
Copy link
Author

Now, it works!
Happy Holiday!
-- Takeshi Nishimatsu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant