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

ERROR about 'rb_num2uint' in win11 when compile the 'rutie_ruby_example' #184

Open
ying911008 opened this issue May 6, 2024 · 1 comment

Comments

@ying911008
Copy link

I run the example of 'rutie_ruby_example' in win11,but it can't work well.The following is an error message:

librutie-6ff32d813178a209.rlib(rutie-6ff32d813178a209.rutie.a5a323cc5a6857a9-cgu.4.rcgu.o) : error LNK2001: 无法解析的外部符号 rb_num2uint
C:\rutie-master\examples\rutie_ruby_example\target\release\deps\rutie_ruby_example.dll : fatal error LNK1120: 1 个无法解析的外部命令

I checked the generated exports.txt, and it doesn't have the 'rb_num2uint', my ruby is 'ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [x64-mingw32]'

@ying911008
Copy link
Author

I use ruby3.0.0 do it again, it can work, and I get the rutie_ruby_example.dll, but run it width ruby, it can't work well, the following is an error message:
C:/Ruby-on-Windows/3.0.0-1/lib/ruby/gems/3.0.0/gems/rutie-0.0.4/lib/rutie.rb:21:in call': wrong argument type Integer (expected Class) (TypeError) from C:/Ruby-on-Windows/3.0.0-1/lib/ruby/gems/3.0.0/gems/rutie-0.0.4/lib/rutie.rb:21:in init'

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

No branches or pull requests

1 participant