Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug not working on Windows #533

Open
letmaik opened this issue Mar 27, 2021 · 0 comments
Open

Debug not working on Windows #533

letmaik opened this issue Mar 27, 2021 · 0 comments

Comments

@letmaik
Copy link

letmaik commented Mar 27, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant