logo       

Re: wrapping static libraries: msg#00128

programming.swig

Subject: Re: wrapping static libraries

I believe the question is different. The library is static and can NOT
be recompiled since it is a third party one.

I would guess that one could generate the wrapping code with swig,
compile it and then link it against the existing static library, forming
a fairly large library containing the static one.

Anton


On Fri, 2004-09-17 at 12:58, Marcelo Matus wrote:
> read the ICC compiler, and look for the -fpic, -fPIC or -kPIC option.
>
> to build a shared library, you need to add the PIC flag.
>
> marcelo
>
>
> Scott Murman wrote:
>
> > i'm trying to wrap a 3rd-party static library on an IA64 system. the
> > intel compilers are complaining that the static library is not
> > compiled with PIC, so that i can't build a shared library that perl
> > can load at runtime. is this a general limitation, or something more
> > specific to these compilers? are there possible solutions?
> >
> > -SM-
> >
> > _______________________________________________
> > Swig maillist - Swig@xxxxxxxxxxxxxxx
> > http://mailman.cs.uchicago.edu/mailman/listinfo/swig
>
>
> _______________________________________________
> Swig maillist - Swig@xxxxxxxxxxxxxxx
> http://mailman.cs.uchicago.edu/mailman/listinfo/swig
--
Anton Deguet Systems Engineer
ERC CISST Johns Hopkins University
http://cisstweb.cs.jhu.edu 410 516 5261

_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise