C extensions to Python...how?

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Mar 21 16:23:20 EST 2000


engsol at teleport.com writes:

> #include <stdio.h>
> #include "c;\python\include\Python.h"   // per the book

Book? What book? Normally, this should read

#include "Python.h"

and you should have c:(!)\python\include in your include path. I don't
know how you tell your C compiler what the include path is, so you'll
have to figure out that on your own. However, Python.h includes a lot
of other files, which the compiler probably can't find.

Hope this helps,
Martin




More information about the Python-list mailing list