i have some functions already in c, and want to provide ruby interfaces that can be used in sketchup 2014’s ruby console. os is win7
what i am done:
- download ruby source code : ruby-2.0.0-p247.tar.bz2
- compile it use vs 2008 x86,
- wrap my c functions, and write a extconf.rb
- use ruby-2.0.0-p247/build/bin/ruby.exe extconf.rb to generate a dll ( ext_ruby.so )
require ‘somepath/ext_ruby’ work
but when load ext_ruby.so in sketchup’s console.
it compains error 126.
and copy msvcr90-ruby200.dll to c:/program files(x86)/sketchup/sketchup2014 folder
it complains incompatible library version
so, some one give me a direction ? or there have a tutorial do the same thing ?