SWIG: Window syntax help

M

Muddy Coder

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top