Unable to compile my C Extension on Windows: unresolved external link errors

Gisle Vanem gisle.vanem at gmail.com
Fri Nov 12 09:53:37 EST 2021


Marco Sulla wrote:

> Error LNK2001: unresolved external symbol PyErr_SetObject
> 
> and so on.
> 
> I post the part of my setup.py about the C Extension:
> 
> extra_compile_args = ["-DPY_SSIZE_T_CLEAN", "-DPy_BUILD_CORE"]

Shouldn't this be "-DPy_BUILD_CORE_MODULE"?


-- 
--gv


More information about the Python-list mailing list