[Python-Dev] What is the difference between Py_BUILD_CORE and Py_BUILD_CORE_BUILTIN?
Eric Snow
ericsnowcurrently at gmail.com
Tue Nov 6 13:19:17 EST 2018
On Tue, Nov 6, 2018 at 8:09 AM Victor Stinner <vstinner at redhat.com> wrote:
> I don't understand the difference between Py_BUILD_CORE and
> Py_BUILD_CORE_BUILTIN defines. Do we need to have two different
> defines? Can't we compile _json with Py_BUILD_CORE?
>
> [snip]
>
> Is it a problem of the visibility/scope of symbols in the python DLL on Windows?
Yep. I added Py_BUILD_CORE_BUILTIN as a workaround for building on
Windows. For extension modules on Windows there's a conflict between
Py_BUILD_CORE and some of the Windows symbols that get defined. My
Windows build knowledge is pretty limited so that's about as far as I
can go. :) Steve might be able to give you more info.
-eric
More information about the Python-Dev
mailing list