C extensions to Python...how?..Disregard

engsol at teleport.com engsol at teleport.com
Tue Mar 21 18:03:44 EST 2000


The problem is that PowerC does not handle long file names, and there
are 22 header files in Python.h which have long file names.

Sorry for wasting the bandwidth.

Norm

On Tue, 21 Mar 2000 20:59:55 GMT, engsol at teleport.com wrote:

>I'd like to learn a bit more about extending Python with C. I'm using
>NT4.0 on an Intel platform. (Python newbie here, so please "Dick and
>Jane" any responses)
>
>Also, I'm using a simple C compiler called PowerC and PFE as the
>editor. This works well, as I've written lots of C programs, and a few
>Python ones as well using PFE....so far so good.
>
>Now the problem:
>
>I create a C file:
>
>#include <stdio.h>
>#include "c;\python\include\Python.h"   // per the book
>
>int main(void)
>{
>}
>
>and compile it....and get a ton of compile errors, although it seems
>to find Python.h OK. I think that because the errors mention other .H
>files referenced by Python.h
>
>
>My PYTHONPATH is: c;\python\Lib
>and regular path is, in part: c:\python\Lib;c:\python\include;
>
>Any responses/help appreciated.
>
>Norm




More information about the Python-list mailing list