On 22 August 2010 16:23, Jon <[email protected]> wrote: > I successfully build gvim with dynamic ruby support on a Win7 32-bit system > using the mingw ruby and gcc 4.5.0 from http://rubyinstaller.org/downloads > and the following simple Make_mingw.mak mods: > > -#RUBY=c:/ruby > +RUBY=c:/ruby192 > ifdef RUBY > ifndef DYNAMIC_RUBY > DYNAMIC_RUBY=yes > endif > # Set default value > ifndef RUBY_VER > -RUBY_VER = 16 > +RUBY_VER = 191 > endif > ifndef RUBY_VER_LONG > -RUBY_VER_LONG = 1.6 > +RUBY_VER_LONG = 1.9.1 > endif > > However, ":echo has('ruby')" returns 0 and ":ruby puts 'Hello'" returns > > E448: Could not load library function rb_str2cstr > E266: Sorry, this commands is disabled, the Ruby library could not be loaded. > > Running ":version" shows "+ruby/dyn" and > -DDYNAMIC_RUBY_DLL="msvcrt-ruby191.dll" and PATH has C:\ruby192\bin > containing msvcrt-ruby191.dll > > Any ideas on what's going wrong?
Something very similar happens when compiling 7.3.003 against 1.9.2 using MSVC10/MSSDK-7.1 - the static build obviously fails with a slightly different if_ruby.obj: error LNK2001: unresolved external symbol __imp__ruby_errinfo Cheers, Leo -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
