rubyc on windows throws linker error
Hi so we are using rubyc to make precompiled binary on windows and facing linker error. Here are the system and other details
ruby version 2.5.1 (with msys2 for linux interoperabilty building) OS version Windows 10 - 64 bits Visual studio community edition 2017 with update 3 VC++ 2015.3 v14.00 (v140) toolset for desktop
staging_dir has only one file: My_application.gem Command we are running is: c:\rubyc.exe -r staging_dir -o my_precompiled_output_binary
Error we are facing is:
extinit.obj : error LNK2019: unresolved external symbol Init_ripper referenced in function Init_ext vcruntime140-ruby240.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.EXE"' : return code '0x2' Stop. Failed running [{"CI"=>"true", "ENCLOSE_IO_USE_ORIGINAL_RUBY"=>"1", "ENCLOSE_IO_RUBYC_1ST_PASS"=>nil, "ENCLOSE_IO_RUBYC_2ND_PASS"=>"1"}, "nmake "]
Not sure why it wont find Init_ripper referenced in function Init_ext. Any clue is appreciated.
I have the same error, but 'cl' return this code. Any idea for this?
hi, @artyomkalm do you can try to use v0.4.0 rubyc?