预编译头错误 [英] Precompiled header Error
本文介绍了预编译头错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
你能告诉我这个错误的解决方案是什么......
警告C4627: '#includeCDragDrop.h':在寻找预编译头时使用跳过
提前致谢
Vivek Chauhan
hi all,
can you tell me what is the solution of this error...
warning C4627: '#include "CDragDrop.h"': skipped when looking for precompiled header use
Thanks in advance
Vivek Chauhan
推荐答案
可能在stdafx之前包含了CDragDrop.h文件。 h,如下:
May be you have included "CDragDrop.h" file before "stdafx.h", as follow:
#include "CDragDrop.h"
#include "stdafx.h"
解决问题,写完<之后的所有文件包含code> #includestdafx.h声明。
它应该是这样的:
#includestdafx.h
#includeCDragDrop.h
to fix the problem, write all the file inclusions after the #include "stdafx.h"
statement.
It should be like this:
#include "stdafx.h"
#include "CDragDrop.h"
确保在该文件中包含了预编译的头文件。我认为它在Visual Studio中是强制性的。
Make sure you have included you precompiled header in that file. I think it's compulsary in Visual Studio.
在出现此警告时,正在编译的.cpp文件中的预编译头的#include是什么?
Is the #include for your precompiled header in your .cpp file that is being compiled when this warning occurs?
这篇关于预编译头错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文