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

Re: Wrapping code



Leopold Palomo-Avellaneda <lepalom@wol.es> writes:

> I forgot to mention that it's not c but that it's c++ with ABI from the redhat 
> 7.2 (gcc-2.96) . :-( If it's possible to use swig to generate wrapper and 
> then use the generated wrapper on another machine.
>
> Regards,
>
> Leo 

g++ had huge abi changes. Instead of a wraper I would rather attempt a
client/server approach there.

Make a g++-2.96 binary the links against the old lib and one g++-4.0
library. The library would fork the binary on _init along with a pipe
pair and then send all function calls through that pipe and the
results back.

That is if you MUST.

MfG
        Goswin



Reply to: