This is an old copy of the Python FAQ. The information here may be outdated.

Can I create my own functions in C++?

Yes, by using the C compatibility features found in C++.

Most notably, you need to put extern “C” before each function that is going to be called by the Python interpreter. To write portable code, avoid using global or static C++ objects with constructors.

CATEGORY: extending


A Django site. rendered by a django application. hosted by webfaction.