【转】解决:fatal error C1083: 无法打开预编译头文件


http://blog.csdn.net/aafengyuan/article/details/7988584

是这样的,我创建了一个空项目,并通过"项目属性>C/C++>预编译头"把"预编译头"选项设置为"使用(/Yu)",然后手动创建了stdafx.h以及stdafx.cpp

但是编译的时候就报C1083这个错

后来查了一下,把stdafx.cpp的"属性>C/C++>预编译头"修改为"创建(/Yc)",就解决了这个问题

手动创建stdafx.h和stdafx.cpp的内容如下:

stdafx.h
/*********************

#pragma once

#include <afxwin.h>

*********************/

stdafx.cpp

/*********************

#include "stdafx.h"

*********************/

原文地址:https://www.cnblogs.com/qrlozte/p/4882792.html