[Pyrex] Desperate pyrex/c++ help.

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 26 02:02:57 CEST 2005


qzm wrote:

> Looking through pyrex, it looks like the basics of c++ support are
> there, but I cannot seem to get it to hook up with a simple distutils
> setup.py.

Any apparent support for C++ currently in Pyrex is purely
accidental. It's part of the plan for the future, but
nothing has been done yet. For various reasons you can't
just compile Pyrex output with a C++ compiler (lvalue
casts being among the most serious problems).

The best you can do at the moment is write a C wrapper
around the C++, and then wrap that with Pyrex.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+



More information about the Pyrex mailing list