From: Rajinder Yadav Date: 2009-09-28T03:18:08+09:00 Subject: Re: calling 'C' code from Ruby Joel VanderWerf wrote: > Rajinder Yadav wrote: >> Hi all, >> >> I am wondering if there is a tutorial that will show me how to call C >> code from Ruby? > > One starting point is the README.EXT file in the ruby source. There's > also a chapter in the pickaxe book (Programming Ruby). As you get > farther along you may want to look into swig, if you are trying to > access an existing library. > Thanks Joel, I also came across di and ffi on my search as well and was wondering what is the most efficient technique? or what solution is the most cleanest way to make calls to C/C++ code from Ruby? If anyone is calling their C/C++ code from Ruby, I would like to hear from them what limitations they may was discovered on the the various methods. -- Kind Regards, Rajinder Yadav http://DevMentor.org Do Good ~ Share Freely