VS2017 c++关于#include 头文件错误问题
来源:互联网 发布:yy网络主播天佑 编辑:程序博客网 时间:2024/06/02 05:50
VS2017 c++关于#include 头文件错误问题
新安装的vs2017 c++桌面开发环境
在编译控制台程序中 添加mfc支持时报 afx.h文件找不到。
参考:afxwin.h not found by VS2017
Reported by Paul Nelson 2016年11月16日 21:22 Closed - Not a Bug windows 10.0visual studio 2017 rc
I have installed VS2017 with the C++ development tools, and then installed the MFC/ATL support tools. Running the VS2017 installer app shows them all installed. I also installed the Windows 10 SDK I then took a MFC app previously developed using VS2010, opened it with VS2017, retargeted it to the new compiler and retargeted it to the new SDK. However, when I try to rebuild it, it fails because it can't find afxwin.h
隐藏 10
Daniel Griffing · 2016年11月16日 21:54 0
Hello Paul,
I'm sorry you're running into issues with upgrading this project to Visual Studio 2017 RC. Could you check whether you're seeing afxwin.h installed under the following location? (Please note the following assumes Enterprise on an x64 Windows machine)
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.24629\atlmfc\include\afxwin.h"
If the file is not there, could you double check whether the "ATL and MFC" optional feature in the Visual C++ Desktop workload is selected (I assume it will be based upon your problem description)?
Please let me know either way and we can dig further. The next step in the investigation will depend on the answer to whether it was installed at all.
Regards,
–Daniel Griffing, Visual C++ Libraries
来源: https://developercommunity.visualstudio.com/content/problem/2456/afxwinh-not-found-by-vs2017.html
解决方式:
手动添加安装 VS "MFC和ATL支持(x86和x64)"支持库
重启vs编译成功
- VS2017 c++关于#include 头文件错误问题
- c++关于#include <afx.h>头文件错误问题
- 关于#include头文件问题
- 关于C头文件包含include "**.h"
- 关于VS2017缺少头文件的解决办法
- #include<> C/C++ 头文件
- vs2017找不到头文件
- 关于在线安装vs2017缺少头文件的解决办法
- 关于在非C盘安装VS2017后MFC资源视图路径错误的问题
- 关于C++头文件#include<iostream.h>debug时提示文件目录不存在错误解决方法?
- 关于#include<linux/***.h>头文件
- 关于c++头文件互相include
- C语言头文件#include的作用
- [include]C库头文件列表
- c++ 头文件包含问题-include&class
- opencv 头文件 包含 include 的问题
- c++ 头文件包含问题-include&class
- VS中include头文件问题
- win7系统怎么关闭讲述人功能?
- Python高阶文章整理--待编中
- vsftpd 550 Failed to open file.
- 机器码农:深度学习自动编程
- 大型网站架构之分布式消息队列
- VS2017 c++关于#include 头文件错误问题
- Android<我所理解的Handler机制>
- openfire插件最佳实践(一)简单插件开发
- 关于ASP.NET中的session
- 欢迎使用CSDN-markdown编辑器
- kotlin入门系列二---基本语法
- caffe 画loss图
- 查看文件(或文件夹)被哪个进程使用【文件已在另一程序中打开】
- 全国1977——2016年参加高考人数和录取率