SWIG C++ & gcc
-
Hello everybody,
I'm trying to compile a C++ extension for Sketchup using SWIG.
Thanks to Chris topic I have a working solution to compile C extension but PellesC don't handle c++ code.So I moved to SWIG. I found this topic : http://forums.sketchucation.com/viewtopic.php?f=180&t=22109 but when I link the dll I still have some undefined references
Here is some errors :
obj\Release\example_wrap.o:example_wrap.cxx:(.text+0xd3): undefined reference to
_imp__rb_eRuntimeError' obj\Release\example_wrap.o:example_wrap.cxx:(.text+0x113): undefined reference to
_imp__rb_eRuntimeError'
....for information I'm on a PC and I use mingw32-gcc.exe to compile and link.
Do you know a lib that I missed ?
Advertisement