wrapping a large C++ library (OpenH323)
David Abrahams
dave at boost-consulting.com
Wed Dec 11 09:09:46 EST 2002
Anthony Baxter <anthony at interlink.com.au> writes:
> I want to look at wrapping a large C++ library (the OpenH323 library,
> www.openh323.org). Ideally, I'd like to be able to do this with the
> minimum pain necessary, so that I can wrap just the highest level objects
> initially, then work on the edges.
>
> What's people's feelings on the various techniques for this? There's
> a couple of approaches that I can think of - SWIG, CXX, and Boost.
> Which of these are going to be least painful?
No comment. ;->
> Which allow the C++ classes to be subclasses in Python?
Boost.Python does. AFAIK the others you list do not. I believe there
are other options which do.
> It's a while since I've had to seriously get into the horror that is
> C++, so hopefully something that doesn't require deep deep C++
> knowledge would also be good...
You could judge the pain for yourself by looking through the tutorial:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/libs/python/doc/tutorial/index.html
--
David Abrahams
dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
More information about the Python-list
mailing list