Re: Interfacing python and C

2009-03-28 Thread Nick Craig-Wood
MRAB wrote: > steve William wrote: > > Hi All, > > > > I'm using SWIG for the first time and I am facing some problems with > > user defined header files. I'm trying to use my own header file in a C > > program which would be interfaced with python. > > > > The header file is test.h: > > /#in

Re: Interfacing python and C

2009-03-27 Thread MRAB
steve William wrote: Hi All, I'm using SWIG for the first time and I am facing some problems with user defined header files. I'm trying to use my own header file in a C program which would be interfaced with python. The header file is test.h: /#include int fact(int n) { if (n <= 1) re

Interfacing python and C

2009-03-27 Thread steve William
Hi All, I'm using SWIG for the first time and I am facing some problems with user defined header files. I'm trying to use my own header file in a C program which would be interfaced with python. The header file is test.h: *#include int fact(int n) { if (n <= 1) return 1; else return n

Interfacing python and C

2009-03-27 Thread steve William
Hi All, I'm using SWIG for the first time and I am facing some problems with user defined header files. I'm trying to use my own header file in a C program which would be interfaced with python. The header file is test.h: *#include int fact(int n) { if (n <= 1) return 1; else return n