Easiest way to include C libraries
Robin Munn
rmunn at pobox.com
Wed Jan 29 11:41:35 EST 2003
Peter Hansen <peter at engcorp.com> wrote:
> Thomas Heller wrote:
>>
>> Peter Hansen <peter at engcorp.com> writes:
>>
>> > Marc wrote:
>> > >
>> > > Basically I have to include a bunch of header files (.h for C) or .dll
>> > > files (for Tcl) and be able to access them from Python code. These
>> > > files are quite large, so any manual intervention will be time
>> > > consuming. The new release of Python mentioned some new ways of
>> > > extending it, but I'm not sure how many people have used these new
>> > > functions or what problems they might have.
>> >
>> >
>> > Look into "calldll" or the newer potential replacement ... uh.. dang!
>> > What was the name of that thing? Why didn't I bookmark it. :-(
>> >
>> > (No doubt some kind soul will post the name and save us the trouble
>> > of searching futilely for it... so far Google hasn't helped me.)
>>
>> ctypes.
>>
>> http://starship.python.net/crew/theller/ctypes.html
>
> Thank you thank you thank you. :-) Bookmarked at last!
>
> (We're still using calldll, but from what I've seen it will be a nice
> move to switch to ctypes.)
I recall a posting recently saying that ctypes development has been
moved to Sourceforge. You may want to bookmark
http://sourceforge.net/projects/ctypes/
as well.
--
Robin Munn <rmunn at pobox.com>
http://www.rmunn.com/
PGP key ID: 0x6AFB6838 50FF 2478 CFFB 081A 8338 54F7 845D ACFD 6AFB 6838
More information about the Python-list
mailing list