adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-devel] SWIG Advanced topics


From: Kai Sterker
Subject: Re: [Adonthell-devel] SWIG Advanced topics
Date: Mon, 24 Feb 2003 13:50:36 +0100

On Mon, 24 Feb 2003 12:57:34 +0100 Alexandre Courbot wrote:

> Mmm. In my recent tests, I can say that I've used classes of a module
> in another module (argument passing) without a poroblem. And the
> classes were wrapped only once.

Hm, yeah, I see. As each module has its own SWIG methods, that would
work. 

Still, there's some overhead. And linking the item stuff that requires
the SWIG methods to be non-static might fail. I haven't tried though, so
I couldn't say for sure.

 
> > That is the problem. It wouldn't be on the developer side :(. Unless
> > we include the code for the library like we did with SDL Mixer.
> > Shouldn't be a problem at all, I think. Look at
> > SWIG-1.3.xx/Runtime/Makefile.in. It's a single file that needs be
> > assembled and compiled. We could easily ship that file with
> > Adonthell's source code.
> 
> Isn't the swig library static? So why would the end user need it?

To link against it, in case we would go with a single copy of the SWIG
methods (instead of including them into each module as we do now).

It would not need to be installed. Actually, we wouldn't even have to
build the library. Linking the resulting object file should work too.

Kai




reply via email to

[Prev in Thread] Current Thread [Next in Thread]