Re: Access to C++ dlls from Python
Chris Clark <[email protected]> Fri, 29 Oct 2010 10:49:38 -0700
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Diez B. Roggisch wrote: >> I posted on the list because I couldn't find what I was looking >> for using Google. Search for what? C++? DLL? Class? >> Enlighten me please. >> >> Most of the Googles I did on the subject ended up on posts where >> someone asked similar questions, and got a barrage of replies >> ahem... explaining that they shouldn't do that. Well, I want to >> do it, as they say in America 'get over it' :). I see I've >> inadvertently now added to the list of 'non-answers' out there on >> the Interweb. Sigh.... :(. >> > > > Well, it is surprisingly hard to find. I have it located in my inbox, > but can't find the discussions somewhere online. > > This is one thing that is related: > > http://pygccxml.svn.sourceforge.net/viewvc/pygccxml?view=revision > > Other keywords to google: cpptypes. > > Time-range in this archive is January 2009. You can download the > archives by month I think. > RE name mangling, there is a a nice short write up on this at: http://blog.vrplumber.com/index.php?/archives/197-Ctypes-for-C++-is-going-to-be-a-pain-due-to-politics-Bothering-language-creators-is-fun....html I'd read this blog post before so I knew what I was looking for. I used: http://www.google.com/search?hl=en&source=hp&biw=1222&bih=707&q=ctypes+c%2B%2B If you really need C++ dynamic DLL access a hand written C dll is your best bet. If you don't care about dynamic SIP (and the new PySide stuff) is your best bet. swig documents some C++ support now too. But this is all static python extension building not FFI. Chris ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev