SWIG: Window syntax help

Muddy Coder cosmo_general at yahoo.com
Thu Mar 26 12:25:07 EDT 2009


Hi Folks,

I am learning SWIG, with a doggy C file test.c. I have made test.i,
the interface file, then I ran:

C:>swig -python test.i   ---> smooth
C:>cl -c test.c test_wrap.c -IC:\Python25\include  ----> nice,
test.obj, test_wrap.obj, test.py files were created

But the final step I got error message by running this:
C:>cl -shared test.obj test_wrap.obj -o test.dll

It did not take -shared  and -o

I tried to follow the example of the DOCS, and modified the syntax of
unix. Can anybody help me to get a right syntax for Windows? Thanks!

Muddy Coder



More information about the Python-list mailing list