错误:Error:未定义标识符“_TCHAR“和无法打开源文件“stdafx.h”


前言

      仅以记录错误,方便查看。原文:https://blog.csdn.net/hier3/category_6098210.html


一、错误:Error:未定义标识符"_TCHAR"

      原因:没有将必要的库或者头文件添加进来。

      方法: 添加一条 #include <tchar.h> 即可成功编译

二、无法打开源文件“stdafx.h”

      直接删除include “stdafx.h” 即可,因为已经有预编译了。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_44029310/article/details/127270823