PyInline problem

Duncan Smith buzzard at urubu.freeserve.co.uk
Wed Dec 5 11:51:42 EST 2001


Can anybody tell me why this won't build?  It doesn't seem to like the
include files, but I have been advised that I probably need them.  Python
2.0, PyInline 0.03.  Thanks.

import PyInline

m = PyInline.build(code="""
    #include <system.h>
    #include <stlib.h>
    int myfunc(int a) {
        if(n < 0){
            exit(1);
            }
        return a * (a+1);
    }
    """, language="C")







More information about the Python-list mailing list