Re: Problem in calling custom shared library from python
Jarkko Vatjus-Anttila <[email protected]> Fri, 9 Mar 2012 15:08:32 +0200
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <CAP8GwZ-qaD=2kfrpRv61x9X=R713dT=aTS0H7YjP=5L_LQLksg@mail.gmail.com> |
On Fri, Mar 9, 2012 at 9:29 AM, Thomas Heller <[email protected]> wrote: > Am 08.03.2012 21:13, schrieb Jarkko Vatjus-Anttila: > > On Thu, Mar 8, 2012 at 3:25 PM, Thomas Heller <[email protected] > > > > For those c++ mangled types, the XML output from gcc-xml has all the > > needed information to format tables for python to make the calls with > > real function names. But, I take from your comment that this is not the > > task, nor purpose of the h2xml/xml2py pair. For that purpose I could > > write my own quick parser, if I see real need for it. > > Can't you simply define the functions as 'extern "C"'? For those places I have access to the source code, yes I can, and I already did. But for those libs I do not have the source code access to, I cannot do that. Well either way, my code seems to be running very well now. Thanks for the help! - Jarkko ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ ctypes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ctypes-users