C extension help needed

DOC doc at sympatico.ca
Tue Jan 2 10:49:46 EST 2001


I have been playing with the "simple example" from here:
http://www.python.org/doc/2.0b1/ext/simpleExample.html

When I compile the file with gcc I get a couple of
error messages at link time:

/usr/tmp/ccudMfF8.o(.text+0x14): undefined reference to
'PyArg_ParseTuple'
/usr/tmp/ccudMfF8.o(.text+0x40): undefined reference to
'Py_BuildValue'

I can trace these back via Python.h to modsupport.h where
they are defined 
as external. Then I loose the trail.

Are these in a file that should be explicitly linked in?

As far as I know, my $PATH is ok but I have been having some
problems getting header files in. I need to run gcc with
-I /usr/include/python1.5

Thanks for any help.

DOC



More information about the Python-list mailing list