【问题标题】:How to fix Error Code E1696? In Windows Visual Studio 2019如何修复错误代码 E1696?在 Windows Visual Studio 2019 中
【发布时间】:2019-08-11 05:12:25
【问题描述】:
所以我最近下载了 Windows Visual Studio 2019。我有一段时间没有编程了,我想用一个基本的“hello world”程序来刷新自己。但由于某种原因,我的 Stdafx.h 标头出现错误。错误代码是 E1696 "cannot open source file "stdafx.h"" 有人知道怎么解决吗?
【问题讨论】:
标签:
c++
visual-studio
compiler-errors
stdafx.h
【解决方案1】:
Visual Studio 中的默认预编译标头曾经是 stdafx.h。从那时起,默认名称已更改为pch.h,后来预编译的标头默认禁用。只需删除#include "stdafx.h" 或将其更改为#include "pch.h",具体取决于您的预编译头设置。如果你不需要预编译的头文件,你可以禁用它。