I'm getting complaints from mingw32's gcc about references to Python symbols, which I would have thought would have been taken care of by distutils' use of -lpython21, below. Why isn't this working? Sorry for the line mangling below. running build_ext building '_recode' extension creating build\temp.win32-2.1\Release d:\ProgramFiles\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ibibtex -Iwin -Iwin/src -Iwin/lib - Iwin/intl -Ic:\Python21\Include -c compiled/recodemodule.c -o build\temp.win32-2.1\Release\recode module.o writing build\temp.win32-2.1\Release\_recode.def d:\ProgramFiles\mingw\bin\gcc.exe -mno-cygwin -mdll -static -s build\temp.win32-2.1\Release\recod emodule.o build\temp.win32-2.1\Release\_recode.def -Lc:\Python21\libs -Lbuild\temp.win32-2.1 -lpy thon21 -lrecode -o build\lib.win32-2.1\_recode.pyd build\temp.win32-2.1\Release\recodemodule.o(.text+0xd9):recodemodule.c: undefined reference to `_ imp__PyExc_IOError' build\temp.win32-2.1\Release\recodemodule.o(.text+0x1d1):recodemodule.c: undefined reference to ` _imp__PyExc_IOError' build\temp.win32-2.1\Release\recodemodule.o(.text+0x203):recodemodule.c: undefined reference to ` _imp__PyType_Type' error: command 'gcc' failed with exit status 1 Thanks for any help John
"John J. Lee" wrote:
I'm getting complaints from mingw32's gcc about references to Python symbols, which I would have thought would have been taken care of by distutils' use of -lpython21, below. Why isn't this working?
Sorry for the line mangling below.
running build_ext building '_recode' extension creating build\temp.win32-2.1\Release d:\ProgramFiles\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ibibtex -Iwin -Iwin/src -Iwin/lib - Iwin/intl -Ic:\Python21\Include -c compiled/recodemodule.c -o build\temp.win32-2.1\Release\recode module.o writing build\temp.win32-2.1\Release\_recode.def d:\ProgramFiles\mingw\bin\gcc.exe -mno-cygwin -mdll -static -s build\temp.win32-2.1\Release\recod emodule.o build\temp.win32-2.1\Release\_recode.def -Lc:\Python21\libs -Lbuild\temp.win32-2.1 -lpy thon21 -lrecode -o build\lib.win32-2.1\_recode.pyd build\temp.win32-2.1\Release\recodemodule.o(.text+0xd9):recodemodule.c: undefined reference to `_ imp__PyExc_IOError' build\temp.win32-2.1\Release\recodemodule.o(.text+0x1d1):recodemodule.c: undefined reference to ` _imp__PyExc_IOError' build\temp.win32-2.1\Release\recodemodule.o(.text+0x203):recodemodule.c: undefined reference to ` _imp__PyType_Type' error: command 'gcc' failed with exit status 1
Thanks for any help
John
Look at http://mail.python.org/pipermail/distutils-sig/2001-September/002590.html Kind regards Rene Liebscher
On Fri, 18 Jan 2002, Rene Liebscher wrote:
"John J. Lee" wrote:
I'm getting complaints from mingw32's gcc about references to Python symbols, which I would have thought would have been taken care of by distutils' use of -lpython21, below. Why isn't this working?
[...]
Look at
http://mail.python.org/pipermail/distutils-sig/2001-September/002590.html [...]
Trouble with pexports: src$ ./pexports.exe //c/winnt/system32/python21.dll > python21.def d:\ProgramFiles\pexports-0.42h\src\pexports.exe: //c/winnt/system32/python21.dll: could not load PE image I recompiled (with mingw's gcc), with no effect. What's wrong?? This is just the standard win32 Python 2.1 I'm using here. I've just downloaded Robert Kern's lib2def, but can't try it out here. Still, I don't see why pexports isn't working... John
"John J. Lee" wrote:
On Fri, 18 Jan 2002, Rene Liebscher wrote:
"John J. Lee" wrote:
I'm getting complaints from mingw32's gcc about references to Python symbols, which I would have thought would have been taken care of by distutils' use of -lpython21, below. Why isn't this working?
[...]
Look at
http://mail.python.org/pipermail/distutils-sig/2001-September/002590.html [...]
Trouble with pexports:
src$ ./pexports.exe //c/winnt/system32/python21.dll > python21.def d:\ProgramFiles\pexports-0.42h\src\pexports.exe: //c/winnt/system32/python21.dll: could not load PE image
I'm not sure, but does this message mean pexports can't load/find the file? Maybe you should try it as pexports.exe 'C:\winnt\system32\python21.dll' Rene
I recompiled (with mingw's gcc), with no effect. What's wrong?? This is just the standard win32 Python 2.1 I'm using here.
I've just downloaded Robert Kern's lib2def, but can't try it out here. Still, I don't see why pexports isn't working...
John
participants (2)
-
John J. Lee
-
Rene Liebscher