How to link a C extension module on Mac OS X?

Gerhard Häring gh at ghaering.de
Wed Jul 23 10:56:16 EDT 2003


Fortepianissimo wrote:
> Just started learning how to write a C extension module on Mac OS X.
> Here is a simple module taken from Programming Python: [...]
> ld: Undefined symbols:
> _PyArg_Parse
> _Py_BuildValue
> _Py_InitModule4
> /usr/bin/libtool: internal link edit command failed
> 
> This is Mac OS X 10.2.6 with latest Fink installed. I guess the fetal
> one is the ld reporting undefined symbols. Any tip? Thx.

Two words: Use distutils.

-- Gerhard





More information about the Python-list mailing list