Trying to extend Python with C: undefined reference to `Py_BuildValue'

Christian Heimes lists at cheimes.de
Wed Jun 4 15:30:26 CEST 2008


spectrumdt at gmail.com schrieb:
>   Can anyone help? I am including Python.h, so why does it not find
> Py_BuildValue?


Read your error message again. It says the dynamic linker (ld) can't
find the name. You have to link against the Python library.

Christian




More information about the Python-list mailing list