[英]Visual Studio 2015 error compiling C++ wizard project
When I use Visual Studio 2015 , an error at compile time is raised when I try to create a new Win32 C++ project . 当我使用Visual Studio 2015时 ,尝试创建新的Win32 C ++项目时会出现编译时错误。 I follow the following steps:
我遵循以下步骤:
During the build time of the project the reported errors are: 在项目的构建期间,报告的错误是:
cannot open source file "string.h"
cannot open source file "ctype.h"
...
Finally I fount a solution. 最后,我找到了解决方案。
In Project -> myproject properties -> VC++ Directories -> Include Directories, I add the directory of ucrt, that belong to Windows Kits, in the path: 在项目-> myproject属性-> VC ++目录->包含目录中,我在路径中添加属于Windows Kits的ucrt目录:
C:\Program Files (x86)\Windows Kits\10\include\10.0.10150\ucrt
Ant in In Project -> myproject properties -> VC++ Directories -> Library Directories add:
项目中的Ant-> myproject属性-> VC ++目录->库目录添加:
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10150\ucrt\x86
And thats all.
就这样。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.