Skip to content

Debug not working on Windows #533

@letmaik

Description

@letmaik

When using --build-type=Debug on Windows with MSVC then during link-time the following error is raised:

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

This is because the Python header files themselves pull in the right library by name but the logic in CMaker.get_python_library always uses the non-debug library, so during link the library isn't found:

candidate_implementations = ['python']

I think instead on Windows CMaker should use _d suffixed libraries if the build type is Debug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions