-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
[rustbuild] cannot link to printf
with MSVC on AppVeyor
#42830
Comments
With the new Universal CRT, msvc has switched to all the printf functions being inline wrapper functions. This is a known issue that has been hit before in Rust If you really want |
Looks like adding #[cfg_attr(all(windows, target_env="msvc"), link(name="legacy_stdio_definitions", kind="static"))] to the It is not possible to |
Please don't use |
@retep998 Thanks. |
Spun off from #42777 (comment). The test case for error code E0060 contains an invocation to the C function
printf
. On MSVC, performing doctest on this test case failed withCurrently I'm checking if there is any missing linker args should be added to make the pass without
#[cfg]
ing it out.Minimal test case
Code (copy of E0060), see https://github.com/kennytm/test-term-coloring/tree/43a23596b
Test result, see https://ci.appveyor.com/project/kennytm/test-term-coloring/build/1.0.2
The text was updated successfully, but these errors were encountered: