PDA

View Full Version : Swig/gcc issues


navjeet
12-02-2006, 04:40 AM
Has anybody successfully used swig to create a wrapper around c++ code so that it can be called by ruby?

I am trying to do it as per instructions at http://www.ociweb.com/jnb/jnbJan2006.html, but getting the error message:

cc1plus: unrecognized option `-auxbase'
cc1plus: output filename specified twice

when runnning the command:

gcc -c -fpic *.cpp *_wrap.cxx \
-I. -I$rubydir

Any help will be appreciated.