Re: static libraries
Mads Kiilerich <[email protected]> Mon, 17 Jan 2011 01:01:42 +0100
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Reuben Thomas wrote, On 01/16/2011 08:07 PM: > On 16 January 2011 00:57, Mads Kiilerich<[email protected]> wrote: >> Hi >> >> ctypes works fine for me wrapping dynamic libraries (.dll and .so on >> windows, linux and mac). >> >> Now one of the libraries I'm wrapping changes to being provided as a >> static library (.lib and .a). > Can you not just link your executable so it's dlopen-able, then use > ctypes as normal, but using your executable as the library? Which executable? The library? It is a library that I don't control. Creating some kind of wrapper which I do control is one of the options, but I would rather avoid creating these two wrapper layers for the library: one in C that has to be compiled for each platform on each update and one in Python/ctypes. /Mads ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl