Unable to compile my C Extension on Windows: unresolved external link errors
Marco Sulla
Marco.Sulla.Python at gmail.com
Fri Nov 12 11:26:30 EST 2021
On Fri, 12 Nov 2021 at 15:55, Gisle Vanem <gisle.vanem at gmail.com> wrote:
> 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"?
I tried it, but now I get three
error C2099: initializer is not a constant
when I try to compile dictobject.c. Yes, my extension needs dictobject.
More information about the Python-list
mailing list