CXX questions

Greg Landrum gReGlAnDrUm at earthlink.net
Sat Aug 4 11:42:02 EDT 2001


"Chris Barker" <chrishbarker at home.net> wrote in message
news:3B6B2F6A.52A91304 at home.net...
>
> Does CXX work on Windows (and the Mac)? I know it should be pretty
> platform independent, but I see no mention whatsoever of Windows in any
> of the docs, so I'm wondering if anyone is actually using is there. We
> are running on Linux and Windows at the moment, and may need to add Mac
> support someday as well.

I have used CXX on Windows with no problems whatsoever.

> Does CXX include support for NumPy arrays? I use a lot of those, and it
> wopuld be handy.

Working with NumPy stuff from C extension modules is reasonably
straightforward, whether you
are using CXX or not.

> Is the CXX project alive and well? It looks like the latest update on
> sourceforge is almost a year old: not a good sign!

I believe it's still alive and well.  I think that version 5.1 is coming
reasonable soon, but you'd have to check with the developers on that.

If you are wrapping C++ code and still just getting started, you might want
to look at using the Boost Python library
(http://www.boost.org/libs/python/doc/index.html) instead of CXX.  Boost
makes it very easy to wrap classes and has the very nice feature of allowing
you to subclass your extension classes in Python.  One potential pitfall
with Boost is that it really gives your C++ compiler a workout.  It mostly
works with Visual C++, but I have no idea how good your Mac C++ compiler is.

I hope this helps,
-greg





More information about the Python-list mailing list