|
Re: dependant modules: msg#00147programming.swig
On Mon, Jan 27, 2003 at 08:46:35AM -0500, Blezek, Daniel J (Research) wrote: > Since libswigpy is not distributed under Windows, I made > an empty module like this: > > %module InsightRuntime > > %runtime > %{ > #define SWIG_GLOBAL > %} > // Dummy module to create the runtime library > > Ran swig -c++ ... > > To compile, you must use -DSWIG_GLOBAL (or it's equivalent under VC++). This > produces the equivalent > of the runtime code in a module. Just link other modules against it. > > I found this solution worked equally well under Linux, and was more > satisfactory than libswigpy. Thanks for the idea! I ran into one snag.. The above .i file puts the #define down around line 600 for me, which is well past where it would be used and so it goes ignored. The solution for me was to add a .i with just the following: %module swigruntime And compile it without -c, while compiling the others with -c. Then using -DSWIG_GLOBAL in my CFLAGS for everything. I expected I might get some linker clashes from this but it went smoothly. I'll have to dig around the automake docs to see if i can set it for just the swigruntime.cc. Thanks again, Natas -- I am damn unsatisfied to be killed in this way. http://www.icculus.org/openbox/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: dependant modules: 00147, Blezek, Daniel J (Research) |
|---|---|
| Next by Date: | RE: dependant modules: 00147, David Beazley |
| Previous by Thread: | RE: dependant modulesi: 00147, Blezek, Daniel J (Research) |
| Next by Thread: | RE: dependant modules: 00147, David Beazley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |