New submission from Rainer Schaaf <r...@pdflib.com>:

When building a c extension on windows the linker fails like this:

link.exe /DLL /nologo /INCREMENTAL:NO 
/LIBPATH:../../../libs/plop/Release_MD_PLOPDS_VS6 
/LIBPATH:C:\Programme\python32\libs /LIBPATH:C:\Programme\python32\PCbuild 
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libplop.lib 
/EXPORT:PyInit_plop_py build\temp.win32-3.2\Release\plop_py.obj 
/OUT:build\lib.win32-3.2\plop_py.pyd 
/IMPLIB:build\temp.win32-3.2\Release\plop_py.lib 
/MANIFESTFILE:build\temp.win32-3.2\Release\plop_py.pyd.manifest
   Creating library build\temp.win32-3.2\Release\plop_py.lib and object 
build\temp.win32-3.2\Release\plop_py.exp

plop_py.obj : error LNK2019: unresolved external symbol 
__imp___PyArg_ParseTuple_SizeT referenced in function __wrap_PLOP_new

build\lib.win32-3.2\plop_py.pyd : fatal error LNK1120: 1 unresolved externals


I use distutils to build the extension. The same code works fine on 
Linux/Unix/MacOSX. When I unset the Py_LIMITED_API it works fine on Windows too.

----------
components: Extension Modules
messages: 131683
nosy: rjs
priority: normal
severity: normal
status: open
title: Py_LIMITED_API on windows: unresolved symbol 
__imp___PyArg_ParseTuple_SizeT
versions: Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11626>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to