embedded python on mac - linking problem

Krzysztof Kobus kk720801 at yahoo.com
Wed Jan 6 09:48:28 EST 2010


Hi,

>The missing symbol looks like a C++-symbol - but Python is C. Do you maybe miss the
> extern "C"

>
> declaration.

I have not specified extern "C" as I assume it is a part of 
PyMODINIT_FUNC define. At least documentation says so:

"Note that PyMODINIT_FUNC declares the function as PyObject * return type,
declares any special linkage declarations required by the platform, and for C++
declares the function as extern "C"."

Regards,

KK


      



More information about the Python-list mailing list