1.

Can I Create My Own Functions In C++?

Answer»

Yes, using the C compatibility FEATURES found in C++. Place extern "C" { ... } AROUND the Python include files and PUT extern "C" before each function that is going to be called by the Python interpreter. Global or static C++ objects with constructors are probably not a GOOD idea.

Yes, using the C compatibility features found in C++. Place extern "C" { ... } around the Python include files and put extern "C" before each function that is going to be called by the Python interpreter. Global or static C++ objects with constructors are probably not a good idea.



Discussion

No Comment Found