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

LINK : fatal error LNK1181: cannot open input file 'legacy_stdio_definitions.lib' #110842

Open
OwenLu88 opened this issue Apr 26, 2023 · 3 comments
Labels
O-windows-msvc Toolchain: MSVC, Operating system: Windows

Comments

@OwenLu88
Copy link

I want to compile the rust code with Pycharm, but it's failed. It prompts as follows:
LINK : warning LNK4044: unrecognized option '/NATVIS:C:\Users\lumi.lu.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\intrinsic.natvis'; ignored
LINK : warning LNK4044: unrecognized option '/NATVIS:C:\Users\lumi.lu.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\liballoc.natvis'; ignored
LINK : warning LNK4044: unrecognized option '/NATVIS:C:\Users\lumi.lu.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\libcore.natvis'; ignored
LINK : warning LNK4044: unrecognized option '/NATVIS:C:\Users\lumi.lu.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\libstd.natvis'; ignored
LINK : fatal error LNK1181: cannot open input file 'legacy_stdio_definitions.lib'

What's the legacy_stdio_definitions.lib? I already installed VS2013.
How to fix it?

@albertlarsan68
Copy link
Member

The fix would be to install a newer version of VS, but since the docs say that VS 2013 is supported, it may be a bug.
Can you share the code you are trying to compile, and the commands?

@ChrisDenton
Copy link
Contributor

This is a very weird coincidence but just four hours ago I posted a PR to libc to stop linking this in Rust's std rust-lang/libc#3226

@Nilstrieb Nilstrieb added the O-windows Operating system: Windows label Apr 26, 2023
@ChrisDenton ChrisDenton added O-windows-msvc Toolchain: MSVC, Operating system: Windows and removed O-windows Operating system: Windows labels Apr 26, 2023
@ChrisDenton
Copy link
Contributor

Btw we do still say we support VS 2013 but it isn't tested so we have to rely on user reports for bugs. It's currently on the "extended" stage (security fixes only) of Microsoft's support cycle, which ends next year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows-msvc Toolchain: MSVC, Operating system: Windows
Projects
None yet
Development

No branches or pull requests

4 participants