I don’t know where the problem is, whether my Ruby installation or SWIG
installation, but I think it’s ruby. I’m trying to link a program
involving SWIG-generated C code and I’m getting the error, cannot
find -lruby.
If I drop the -lruby, I get these errors:
example_wrap.o(.text+0x351):example_wrap.c: undefined reference to
_rb_define_m odule' example_wrap.o(.text+0x3c7):example_wrap.c: undefined reference to
_rb_cObject’
So I think I’m missing ruby.o. But why, and where can I get it?
I downloaded and extracted this, which didn’t include such a file.
http://www.ruby-lang.org/~eban/ruby/binaries/cygwin/ruby-1.6.8-20030213-i386
-cygwin.tar.gz