简体   繁体   中英

Visual Studio Build Tools 14 cannot find stdio.h

Ayo,

Now I have attempted other solutions to the problem that over people have had success in. But unfortunately, technology is not on my side today.

As the title says my C++ compiler says it cannot find 'stdio.h' then leaves with error status 3, Here is the stacktrace https://gyazo.com/d26d47054ee30f7e03524b7d8c0052a8

How would I be able to resolve this?

Thanks, Duke.

Running C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat worked for me. See details on MSDN .

Microsoft now implements C run time library as a "Universal CRT", which is part of the OS. And to develop for it, you will need the SDK for the OS, aka Windows SDK.

CRT Library Features (Microsoft Docs)

However, there's a not-so-obvious component of the SDK installation that will install the minimum needed SDK CRT components (ca. 700MB).

It is called, appropriately, Windows Universal CRT SDK .

You can select it by installing the Build Tools component , which will in turn install the VS Installer. Then you modify the Build Tools to include the individual SDK component.

Visaul Studio 安装程序组件选择窗口

But you won't get far with this, unless you can scam Windows into running an app that doesn't depend on its' kernel, implying you will most likely need the full Windows SDK for the kernel32 library and its' dependencies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM