大家看看,下面这条错误是什么意思,如何排除:
fatal error C1010: unexpected end of file while looking for precompiled header directive
csdn 的解释:Fatal Error C1010
unexpected end of file while looking for precompiled header directiveA precompiled header was specified, but it did not contain a precompiled header directive.This error can be caused by specifying an incorrect file as a header file, or by specifying an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file as an include file.
请尽量详细些,最好把遇到这种情况的可能原因列举一下,谢谢!
fatal error C1010: unexpected end of file while looking for precompiled header directive
csdn 的解释:Fatal Error C1010
unexpected end of file while looking for precompiled header directiveA precompiled header was specified, but it did not contain a precompiled header directive.This error can be caused by specifying an incorrect file as a header file, or by specifying an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file as an include file.
请尽量详细些,最好把遇到这种情况的可能原因列举一下,谢谢!
解决方案 »
- debug时报R6034的runtime error
- 如何调整对话框最小化、最大化后的位置?
- 求教“如何使用TREE control接受从EDIT控件传来的路径并显示”?详情见下文
- 请问哪位老大有<ATL开发指南>这本书? 你还需要吗? 如果不用的话能不能转让给我啊, 最近在搞ATL, 苦于没有好的指导书. 或者借我复印一下也
- 程序运行 时候的错误,希望大家帮忙
- 请问:如何用程序在Excel中添加及修改图表?
- 请问各位:静态变量与全局变量在定义、声明、初始化上相比有什么异同?
- 各位,有谁知道如何删除ini文件中的section和key?
- 使用winsock,如何保持与服务器的连接?
- 在被频繁调用的线程里这样一句代码,会增加内存碎片吗?(急!)
- 我想取的最大记录号,为什么不行呢?
- 在TreeView中,我点击了一个节点,然后再点击其它空白处,怎样使这个节点不失去焦点???
Globals.obj : error LNK2005: _LoadBitmap already defined in Ddutil.obj
Globals.obj : error LNK2005: _ReLoadBitmap already defined in Ddutil.obj
Globals.obj : error LNK2005: _CopyBitmap already defined in Ddutil.obj
所以,我想应该不是缺 #include "stdafx.h" 但是我不知道是缺那个头文件?郁蒙呀!!!!
Globals.obj : error LNK2005: _LoadBitmap already defined in Ddutil.obj
Globals.obj : error LNK2005: _ReLoadBitmap already defined in Ddutil.obj
Globals.obj : error LNK2005: _CopyBitmap already defined in Ddutil.obj
以上问题是某个头文件重复包含所致。查看_LoadBitmap在哪里定义的
#ifndef ****(自己定义一个标示符)
#define ****
然后在最后加上#endif
然后再包含该头文件的文件头处加入:
#ifndef ****
#include "(该头文件)"
#define ****
#endif
后面连接的时候,重复定义,用#pragma once试试
然后你会发现external dependencies树下会多出你刚刚删除的Ddutil.cpp和Ddutil.h