Use Python library from C++

Chris S. chrisks at NOSPAM.udel.edu
Thu Nov 25 03:02:34 EST 2004


zhao wrote:

> Try boost.python and SWIG?
> (boost.sourceforge.net, swig.sourceforge.net)
> 
> Both provide a interface between C/C++ and python
> if you want gui under python, you also can try wxpython or pygtk

I thought SWIG ported C/C++ libraries to Perl, Python, Ruby, Tcl, etc? 
How would you use it to port Python into C/C++?

I think what you're looking for is instruction on how to embed Python in 
your C/C++ application.



More information about the Python-list mailing list