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

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

spectrumdt at 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.


More information about the Python-list mailing list