Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > SWIG, MinGW, and Python 2.3 problem

Reply
Thread Tools

SWIG, MinGW, and Python 2.3 problem

 
 
Phil Schmidt
Guest
Posts: n/a
 
      09-10-2003
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 "initexample" 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\example>python setup.py build
--compiler=mingw32
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.win32-2.3
creating build\temp.win32-2.3\Release
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\python23\include
-Ic:\python23\PC -c example.c -o
build\temp.win32-2.3\Release\example.o
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\python23\include
-Ic:\python23\PC -c example_wrap.c -o
build\temp.win32-2.3\Release\example_wrap.
o
example_wrap.c:170: warning: `SWIG_TypeDynamicCast' 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_ConvertPtr' defined but not used
example_wrap.c:515: warning: `SWIG_ConvertPacked' defined but not used
writing build\temp.win32-2.3\Release\example.def
creating build\lib.win32-2.3
c:\mingw\bin\gcc.exe -mno-cygwin -shared -s
build\temp.win32-2.3\Release\example_wrap.o
build\temp.win32-2.3\Release\example.o build\temp.win32-2.3\Re
lease\example.def -Lc:\python23\libs -Lc:\python23\PCBuild -lpython23
-o build\lib.win32-2.3\example.pyd
Cannot export initexample: symbol not defined
error: command 'gcc' failed with exit status 1
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with python com and python extensions tristan625 Python 0 05-31-2009 06:10 PM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Martin v. L÷wis Python 0 03-01-2008 10:51 PM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Paul Moore Python 0 03-01-2008 10:39 PM
Searching comp.lang.python/python-list@python.org (was: UTF-8) skip@pobox.com Python 0 03-10-2007 02:50 PM
PyXML problem between python 2.3 and python 2.4 PyStarbuck Python 0 01-21-2005 10:56 PM



Advertisments