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

Linking error when building rust crate in debug mode on Windows #3225

Closed
zaddach opened this issue Apr 6, 2024 · 1 comment · Fixed by #3226
Closed

Linking error when building rust crate in debug mode on Windows #3225

zaddach opened this issue Apr 6, 2024 · 1 comment · Fixed by #3226

Comments

@zaddach
Copy link
Contributor

zaddach commented Apr 6, 2024

The rust crate fails to build on Windows because the C++ libraries are trying to link to the debug vc runtime (/MDd), whereas Rust always links against the release runtime (/MD), even when building debug configuration.

Release builds fine.

@benjaminwinger
Copy link
Collaborator

This should probably be documented, but we've been setting /MDd via environment variables in the Makefile here, which has been working, so it is possible (Also see rust-lang/rust#39016 (comment)). However I can also understand if that's not a reliable solution for your workflow.

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

Successfully merging a pull request may close this issue.

2 participants