[Distutils] missing Python symbols
Rene Liebscher
R.Liebscher@gmx.de
Fri Jan 18 02:44:01 2002
"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