1. 程式人生 > >C++:cannot open source file問題

C++:cannot open source file問題

最近,在一些專案中只要引用了標準C++程式碼的地方,都會報cannot open source file這樣的錯誤,比如:

查詢問題後發現,是由於Configuration Properties -> VC++ Directories -> Include Directories中沒有配置造成的:

 只要在其中填入“$(VC_IncludePath);$(WindowsSDK_IncludePath);”,問題就解決了。

下面來看看一般情況下,VC++ Directories中的屬性會包含哪些內容,備查: