• 全部
  • VC综合技术
  • 互联网技术
  • MFC AppLauncher
  • .NET 技术
  • 界面
  • 进程
  • 算法
  • 硬件/系统
  • 数据库
  • VC++技术资源

郁闷!这个错误是什么引起的?fatal error C1010: unexpected end of file while looking for precompiled header directive

zzWind 2002-04-16 01:41:41
同上
...全文
152 点赞 收藏 8
写回复
8 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
willzzq 2002-10-10
加了头,错误更多!
------------------Configuration: MFCService - Win32 Release--------------------
Compiling...
MFCNTService.cpp
NTService.cpp
ServiceApp.cpp
Generating Code...
Linking...
NTService.obj : error LNK2005: "class CNTService * __cdecl AfxGetService(void)" (?AfxGetService@@YAPAVCNTService@@XZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: __thiscall CNTService::CNTService(char const *,char const *)" (??0CNTService@@QAE@PBD0@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: __thiscall CNTService::~CNTService(void)" (??1CNTService@@QAE@XZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual int __thiscall CNTService::RegisterService(int,char * *)" (?RegisterService@CNTService@@UAEHHPAPAD@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual int __thiscall CNTService::StartDispatcher(void)" (?StartDispatcher@CNTService@@UAEHXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual int __thiscall CNTService::InstallService(void)" (?InstallService@CNTService@@UAEHXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual int __thiscall CNTService::RemoveService(void)" (?RemoveService@CNTService@@UAEHXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual int __thiscall CNTService::EndService(void)" (?EndService@CNTService@@UAEHXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual int __thiscall CNTService::StartupService(void)" (?StartupService@CNTService@@UAEHXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "long __stdcall _FacelessWndProc_(struct HWND__ *,unsigned int,unsigned int,long)" (?_FacelessWndProc_@@YGJPAUHWND__@@IIJ@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual int __thiscall CNTService::DebugService(int,char * *,int)" (?DebugService@CNTService@@UAEHHPAPADH@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual void __thiscall CNTService::Pause(void)" (?Pause@CNTService@@UAEXXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual void __thiscall CNTService::Continue(void)" (?Continue@CNTService@@UAEXXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual void __thiscall CNTService::Shutdown(void)" (?Shutdown@CNTService@@UAEXXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: static void __stdcall CNTService::ServiceMain(unsigned long,char * *)" (?ServiceMain@CNTService@@SGXKPAPAD@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: static void __stdcall CNTService::ServiceCtrl(unsigned long)" (?ServiceCtrl@CNTService@@SGXK@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: static int __stdcall CNTService::ControlHandler(unsigned long)" (?ControlHandler@CNTService@@SGHK@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: int __thiscall CNTService::ReportStatus(unsigned long,unsigned long,unsigned long)" (?ReportStatus@CNTService@@QAEHKKK@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: virtual void __thiscall CNTService::AddToMessageLog(char *,unsigned short,unsigned long)" (?AddToMessageLog@CNTService@@UAEXPADGK@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: char * __thiscall CNTService::GetLastErrorText(char *,unsigned long)" (?GetLastErrorText@CNTService@@QAEPADPADK@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "protected: virtual void __thiscall CNTService::RegisterApplicationLog(char const *,unsigned long)" (?RegisterApplicationLog@CNTService@@MAEXPBDK@Z) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "protected: virtual void __thiscall CNTService::DeregisterApplicationLog(void)" (?DeregisterApplicationLog@CNTService@@MAEXXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "public: void __thiscall CNTService::SetupConsole(void)" (?SetupConsole@CNTService@@QAEXXZ) already defined in MFCNTService.obj
NTService.obj : error LNK2005: "private: static int CNTService::m_bInstance" (?m_bInstance@CNTService@@0HA) already defined in MFCNTService.obj
Release/MFCService.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

MFCService.exe - 25 error(s), 0 warning(s)
回复
lhp2001 2002-04-16
ccnuxjq的说法正确
回复
sunshine_shen 2002-04-16
文件前加上#include "stdafx.h"
回复
zzWind 2002-04-16
谢谢大家,问题解决。放分!!!
回复
Koshima 2002-04-16
加上这个:#include <stdafx.h〉
绝对没错!
回复
zhangnanonnet 2002-04-16
头文件的路径不对
回复
GrayWhite 2002-04-16
或者关掉预编译
回复
ccnuxjg 2002-04-16
#include "stdafx.h"
回复
发帖
VC/MFC
创建于2007-09-28

1.5w+

社区成员

VC/MFC相关问题讨论
申请成为版主
帖子事件
创建了帖子
2002-04-16 01:41
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……