logo       

Re: wrapping static libraries: msg#00129

programming.swig

Subject: Re: wrapping static libraries

Then probably you will need to link the static library against Perl, and
make an especial Perl binary... well, that is at least what you have
to do with python, if you don't have the shared library and only the static one.

Marcelo




Anton Deguet wrote:

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


_______________________________________________
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