Making a python extension in c++

Benjamin Geer benjamin.geer at btinternet.com
Wed Apr 25 21:09:21 EDT 2001


In article <988067008.220977 at db.lineo.com>, "Erik Weber" <erikw at lineo.com>
wrote:
> Has anyone compiled a C++ based extension?  If so, what
> did your Setup file look like?

I've only done this using SWIG (http://www.swig.org), but I don't suppose
it's much different if you've written everything by hand.  See this page
for an example:

http://www.btinternet.com/~benjamin.geer/python/embedding.html

It shows how to make a C++ extension, as well as how to embed Python in a
C++ program.

-- 
Benjamin Geer
http://www.btinternet.com/~benjamin.geer



More information about the Python-list mailing list