Re: [Q]An error with my module in C

2006-10-02 Thread Robert Kern
Jia,Lu wrote: > hello,all. > > I wrote a module in C as below, BUT msg() method cannot work > allright. > > #include > #include This isn't related to your error, but you should include Python.h before other headers, and it should be just this: #include "Python.h" distutils will make sure

[Q]An error with my module in C

2006-10-02 Thread Jia,Lu
hello,all. I wrote a module in C as below, BUT msg() method cannot work allright. #include #include static PyObject *Roka_msg(PyObject *self,PyObject *args) { printf("Roka Python lib. Version 1.0\n"); } static PyObject *Roka_func(PyObject *self,PyObject *args) { long arg;