From: "M. Edward (Ed) Borasky" Date: 2006-09-22T23:01:26+09:00 Subject: Re: Assistance wanted for integrating existing C-API into Ruby Feurio wrote: > Thanks a lot for the different answer to my original posting. > > I found the post of ara.t.how...@noaa.gov quite interesting, because it > shows a very straight forward way of interfacing with c-functionality. > > On the the side being able to support multiple scripting language at > once is a compelling outlook, too. > > Can someone elaborate on the portability (linux, win32, etc.) of a SWIG > solution and possible performance issue, that might be connect with > SWIG? > > And still, I am searching someone who can help me in getting a > prototype starting... maybe it would just be sufficient to wrap two or > three c-api calls so that I get a feeling for how to do it myself. > > Feurio > > > SWIG definitely runs on Linux and Windows. It will undoubtedly run on any UNIX platform as long as the "configure" functionality can configure it, although you might need more pieces of the GNU toolchain, such as GNU make. On Macs, here's what the SWIG web site has to say: A highly experimental version of SWIG has been compiled using Metrowerks Code Warrior 10. Given the limited availability and experience with the Macintosh, this version of SWIG should only be used by exceptionally brave users. SWIG has not been fully tested with Python or Perl on the Macintosh although some users have reported success. Note:SWIG-1.3.12 does support OS-X/Darwin. Simply download the Unix sources, configure, and build from the command terminal. http://www.swig.org/compat.html