473,473 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SWIG, MinGW, and Python 2.3 problem

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
Jul 18 '05 #1
0 2067

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alan Sheehan | last post by:
Hi, I am considering scripting a large C++ application. In particular I am interested in test driving and end-user scripting the "application layer" in Python and giving it access to a large...
1
by: JD | last post by:
I hope I didn't post this twice, but I didn't see my earlier posting, so I've posted it again. Please excuse of me you see a 2nd one, but I suspect this might be a problem with our mailer. ...
0
by: Bo Peng | last post by:
Dear List, I have had success in using vector.i of SWIG to map between c++: foo(vector<int>) python: foo() However, the map of vector of objects fails: c++: foo(vector<obj> )
3
by: It's me | last post by:
I am playing around with SWING building a Python module using the no brainer example in http://www.swig.org/tutorial.html. With that first example, /* File : example.c */ #include <time.h>...
0
by: Bill Davy | last post by:
I am working with MSVC6 on Windows XP. I have created an MSVC project called SHIP I have a file SHIP.i with "%module SHIP" as the first line (file is below). I run SHIP.i through SWIG 1.3.24...
1
by: Java and Swing | last post by:
I am trying to wrap some C code I have. Currently I have something like... defs.h ----------- typedef unsigned long MY_DIGIT; myapp.c ------------- void MakeDigits(MY_DIGIT digits) {
1
by: kpd | last post by:
I am using distutils and mingw to create an extension from some C++ code for Python 2.4.1. It builds fine, but on import the following error comes up: python.exe - Entry Point Not Found The...
0
by: Keith Sabine | last post by:
Hi Did you ever find a solution to this? I am having the exact same problem... - Keith I'm trying to pass a proxy class instance (SWIG generated) of CClass, to a python callback function...
0
by: Basha J P M | last post by:
I am beginner in python. I am working through the tutorial examples from http://www.swig.org/ and have run into some problems. I took the following command instructions from the tutorial on...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.