Troubleshoot issues with files such as Stdio.h ucrtd.lib after VS2015 installation

Source: Internet
Author: User

Today suddenly want to install a VS2015 in Windows to play, the results encountered the following bug: After the installation of VS2015, directly new project->win32 console-run, the results of an error! "Could not open include file:" Stdio.h ": No such file or directory" "LNK1104: Unable to open files Ucrtd.lib" strange, stdio.h and Ucrtd.lib are both the VS comes with the header files and library files, are not recognized , so the first reaction is that the directory of the header and library files is not properly imported, that is, the environment variables of include and Lib are out of the question.
There are several solutions to this problem online, but I have tried most of the solutions are not good, and they are set separately for the current project (I do not want to create a new project every time you have to re-match the environment, too troublesome ...) ), so there is a global solution directly:
1. First open the VS2015, create a new project, my new project name is "201604172330_helloworld" (the name is optional), and then click on the menu bar "View", "Other windows", "property manager", so that the Property manager page.

2. The My Property Manager page is on the right side of the VS2015 window and is then found under the project name "201604172330_helloworld" Debug | Win32 "folder, double-click" Microsoft.Cpp.Win32.user ".

3. In the pop-up property page, click on the "VC + + directory" on the left, select the drop-down arrow to the right of "include directory" and "library directory", then click "Edit" to modify environment variables.

4. For the edit of include environment variable, first uncheck "Inherit from parent or project default", then add 5 paths in the red box at the top, click OK.

5. For the edit of the LIB environment variable, leave the check "inherit from parent or project default", then add the 1 paths in the red box at the top and click OK.

6. To complete the reconfiguration of the environment variables, it is normal to recompile the operation.
For why the previous environment variables could not be applied, the online general reflection is a bug in VS2015, and I found that if you select inherit from parent or project defaults, in Windows Kits/10/include and Windows Kits/10/lib Directory under the import is the 10.0.10240.0 folder, but my local directory is the 10.0.10150.0 folder, which is inconsistent, which may cause the environment variable configuration error, so the above this manual configuration method is not a problem.

Troubleshoot issues with files such as Stdio.h ucrtd.lib after VS2015 installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.