C++:cannot open source file问题

最近,在一些项目中只要引用了标准C++代码的地方,都会报cannot open source file这样的错误,比如:

查找问题后发现,是由于Configuration Properties -> VC++ Directories -> Include Directories中没有配置造成的:

 只要在其中填入“$(VC_IncludePath);$(WindowsSDK_IncludePath);”,问题就解决了。

下面来看看一般情况下,VC++ Directories中的属性会包含哪些内容,备查:

猜你喜欢

转载自blog.csdn.net/netyeaxi/article/details/83822715