[Prophesy] Re: C from Python Example

Daniel Phillips phillips at bonn-fries.net
Sun Jun 9 18:50:00 EST 2002


On Saturday 08 June 2002 23:06, you wrote:
> The example can be compiled, installed as a module, and executed using the 
> script line:
> 
>   cc -shared -I/usr/include/python2.2 python2.c -o foo.so && \
                                        ^^^^^^^^^
>   sudo cp foo.so /usr/lib/python2.2/lib-dynload/ && \
>   python2.2 -c "import foo; print foo.bar('test')"

Correction:

    cc -shared -I/usr/include/python2.2 foo.c -o foo.so && \
    sudo cp foo.so /usr/lib/python2.2/lib-dynload/ && \
    python2.2 -c "import foo; print foo.bar('test')"

-- 
Daniel



More information about the Prophesy mailing list