danielpclark / rutie

“The Tie Between Ruby and Rust.”
MIT License
940 stars 62 forks source link

fatal error LNK1181: cannot open input file 'x64-msvcrt-ruby270.lib' #117

Closed prodprogramming closed 3 years ago

prodprogramming commented 4 years ago

Hello everyone,

I'm having some issues here. I am attempting to compile my sample code, using the "Using Ruby in Rust" sample on the crates.io repository.

I am using Windows 10 64bit, and compiling using rutie v0.7.0 as well as Ruby 2.7.1.

Upon compilation, I receive a linker error fatal error LNK1181: cannot open input file 'x64-msvcrt-ruby270.lib'. I have searched through my Ruby27-x64 directory, and am unable to find the .lib file mentioned. I have found a .dll equivalent however, but this doesn't help me.

Any help is appreciated. Thank you guys

danielpclark commented 4 years ago

Ruby 2.7 is not yet supported. Windows has limited support with some issues noted in others issues. I plan to get RuTie updated for Ruby 2.7 this July.

danielpclark commented 3 years ago

Ruby 2.7 is supported on most O.S.s, maybe all known, and Ruby 3.0 has limited support. We have additional linking support incorporated into the build process and an option to not link with the no-link flag used in Cargo.toml if that better fits your needs.

Feel free to reopen this issue if it still persists.