簡體   English   中英

Visual Studio 2015錯誤編譯C ++向導項目

[英]Visual Studio 2015 error compiling C++ wizard project

當我使用Visual Studio 2015時 ,嘗試創建新的Win32 C ++項目時會出現編譯時錯誤。 我遵循以下步驟:

  • 文件->新建->項目...-> Win32項目
  • 我選擇項目名稱,然后按“確定”按鈕。 下一個
  • 我選擇:Windows應用程序

在項目的構建期間,報告的錯誤是:

cannot open source file "string.h"
cannot open source file "ctype.h"
...

最后,我找到了解決方案。

在項目-> myproject屬性-> VC ++目錄->包含目錄中,我在路徑中添加屬於Windows Kits的ucrt目錄:

C:\Program Files (x86)\Windows Kits\10\include\10.0.10150\ucrt

項目中的Ant-> myproject屬性-> VC ++目錄->庫目錄添加:

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10150\ucrt\x86

就這樣。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM