Message131683
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. |
|
Date |
User |
Action |
Args |
2011-03-21 18:54:35 | rjs | set | recipients:
+ rjs |
2011-03-21 18:54:35 | rjs | set | messageid: <1300733675.89.0.959184580863.issue11626@psf.upfronthosting.co.za> |
2011-03-21 18:54:35 | rjs | link | issue11626 messages |
2011-03-21 18:54:34 | rjs | create | |
|