Re: SWIG Python undefined reference

2008-04-29 Thread Paul Melis
Instead of manually trying to get all the options to gcc correct you might want to look at using distutils for compiling your extension. See the SWIG documentation, section 30.2.2 (http://www.swig.org/Doc1.3/Python.html#Python_nn6) Paul Soren wrote: Hi, I went through the SWIG tutorial for t

Re: SWIG Python undefined reference

2008-04-29 Thread Soren
On Apr 29, 11:31 am, Soren <[EMAIL PROTECTED]> wrote: > Ok I found out how to do it using: > > gcc -Ic:\python24\include -Lc:\python24\libs --shared example_wrap.c > example.c -lpython24 -o _example.pyd > > but now I get a "dynamic module does not define init function" error > when I try to import

Re: SWIG Python undefined reference

2008-04-29 Thread Soren
Ok I found out how to do it using: gcc -Ic:\python24\include -Lc:\python24\libs --shared example_wrap.c example.c -lpython24 -o _example.pyd but now I get a "dynamic module does not define init function" error when I try to import it into python.. Anyone?? Soren -- http://mail.python.org/mailm