Skip to content

windows: Fix linking to python in debug mode with MSVC

Including Python.h with _DEBUG set changes the name of the library from pythonXY.lib to pythonXY_d.lib which is usually not installed and available

Compiling giscanner fails with the following error:

LINK : fatal error LNK1104: cannot open file 'python38_d.lib'

See: https://bugs.python.org/issue22411

Edited by Andoni Morales

Merge request reports