From: Hans Oesterholt-D. <sw...@el...> - 2006-01-27 06:57:41
|
Dear All, I've created a patch for dynamic loading instead of (dynamic) linking of wrapper functions for the mzscheme language module against SWIG 1.3.27 With the option '-load-dynamic "lib1[,lib2,...]"' it swig generates wrapper code that does runtime resolving of wrapped functions that are loaded on first use. I tested this code on Windows and Linux (Fedora 3). Example of swig call: swig -dynamic-load "mzgtk2_init.so,libgtkglext-x11-1.0.so,libgdkglext-x11-1.0.so,libGLU.so,libGL.so,libXmu.so,libXt.so,libSM.so,libICE.so,libgtk-x11-2.0.so,libgdk-x11-2.0.so,libatk-1.0.so,libgdk_pixbuf-2.0.so,libm.so,libpangoxft-1.0.so,libpangox-1.0.so,libpango-1.0.so,libgobject-2.0.so,libgmodule-2.0.so,libdl.so,libglib-2.0.so" -DGTK_DISABLE_DEPRECATED=1 -mzscheme -declaremodule mzgtk2_init.i Best whishes, Hans Oesterholt-Dijkema |