On Feb 12, 2009, at 8:40 AM, Stéfan van der Walt wrote: > Hi all, > > I'm helping a student to wrap some C++ code using Cython, and noticed > that the example in the documentation is incomplete. A header file, > Rectangle.h, is provided, but no implementation is given, so the > example cannot be compiled. > > It would be great if you could add an implementation (see attached)
There is already one attached (see the bottom of the page) but it should probably be made more prominent. > and modify the setup.py accordingly, i.e. > > Extension( > "rectangle", > ["rectangle.pyx", "Rectangle.cc"], > language="c++") The example setup.py assumes Rectangle is part of an externally linked library (which is the most common use case). However, the example Setup.py is more explicit. It is a wiki, so it would be nice if someone (you?) improved the presentation. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
