I'm attempting to follow the instructions at
http://sebsauvage.net/python/mingw.html, without luck.
I have Python 2.3, MinGW 3.2.3, ans SWIG 1.3.19.
I get an export error on "initexampl e" when attempting the example. Do
I need some extra switches to get SWIG to create that function? Or is
it something else?
Here's my example build:
C:\Phil\python\ Extensions\exam ple>python setup.py build
--compiler=mingw3 2
running build
running build_ext
building 'example' extension
swigging example.i to example_wrap.c
C:\Phil\python\ Extensions\SWIG-1.3.19\swig.exe -python -o
example_wrap.c example.i
creating build
creating build\temp.win3 2-2.3
creating build\temp.win3 2-2.3\Release
c:\mingw\bin\gc c.exe -mno-cygwin -mdll -O -Wall -Ic:\python23\in clude
-Ic:\python23\PC -c example.c -o
build\temp.win3 2-2.3\Release\exa mple.o
c:\mingw\bin\gc c.exe -mno-cygwin -mdll -O -Wall -Ic:\python23\in clude
-Ic:\python23\PC -c example_wrap.c -o
build\temp.win3 2-2.3\Release\exa mple_wrap.
o
example_wrap.c: 170: warning: `SWIG_TypeDynam icCast' defined but not
used
example_wrap.c: 182: warning: `SWIG_TypeName' defined but not used
example_wrap.c: 188: warning: `SWIG_TypeQuery ' defined but not used
example_wrap.c: 423: warning: `SWIG_ConvertPt r' defined but not used
example_wrap.c: 515: warning: `SWIG_ConvertPa cked' defined but not used
writing build\temp.win3 2-2.3\Release\exa mple.def
creating build\lib.win32-2.3
c:\mingw\bin\gc c.exe -mno-cygwin -shared -s
build\temp.win3 2-2.3\Release\exa mple_wrap.o
build\temp.win3 2-2.3\Release\exa mple.o build\temp.win3 2-2.3\Re
lease\example.d ef -Lc:\python23\li bs -Lc:\python23\PC Build -lpython23
-o build\lib.win32-2.3\example.pyd
Cannot export initexample: symbol not defined
error: command 'gcc' failed with exit status 1