can not open include file afxwin.h :no such header fileor directory in vs 2015 c++
生活随笔
收集整理的這篇文章主要介紹了
can not open include file afxwin.h :no such header fileor directory in vs 2015 c++
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、問題
今天做mfc項目的時候,自己使用的編譯器是vs2015,但是,很不辛,一開始就掉坑里,頭文件都不能包含,編譯一下你會發現下面的錯誤:
can not open include file "afxwin.h" :no such header fileor directory在網上很多人說需要添加什么路徑,但是發現并沒有用,然后找了找,最后發現解決這個問題很簡單。
二、原因
主要是因為你在安裝vs2015的時候,沒有安裝mfc的庫,所以我們需要重新更新一下。
三、解決方法
找到vs安裝重新更新一下,添加下面的選項,如下
總結
以上是生活随笔為你收集整理的can not open include file afxwin.h :no such header fileor directory in vs 2015 c++的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: nested exception is
- 下一篇: jdbc就是这么简单