这是什么错啊

sailor11 2005-09-26 02:11:17
Deleting intermediate files and output files for project 'BondBatman - Win32 Debug'.
--------------------Configuration: BondBatman - Win32 Debug--------------------
Compiling...
BondBatman.cpp
Linking...
BondBatman.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CLogHandler::~CLogHandler(void)" (??1CLogHandler@@UAE@XZ)
BondBatman.obj : error LNK2001: unresolved external symbol _WSACleanup@0
BondBatman.obj : error LNK2001: unresolved external symbol "public: static void __cdecl CLogHandler::Flush(void)" (?Flush@CLogHandler@@SAXXZ)
BondBatman.obj : error LNK2001: unresolved external symbol "public: void __thiscall CWorker::ShutDown(void)" (?ShutDown@CWorker@@QAEXXZ)
BondBatman.obj : error LNK2001: unresolved external symbol "public: void __thiscall CLogHandler::Log(class CString,class CString)" (?Log@CLogHandler@@QAEXVCString@@0@Z)
BondBatman.obj : error LNK2001: unresolved external symbol "public: __thiscall CLogHandler::CLogHandler(void)" (??0CLogHandler@@QAE@XZ)
BondBatman.obj : error LNK2001: unresolved external symbol _WSAGetLastError@0
BondBatman.obj : error LNK2001: unresolved external symbol _accept@12
BondBatman.obj : error LNK2001: unresolved external symbol "unsigned int __cdecl SPCreateListenSocket(char const *,unsigned int)" (?SPCreateListenSocket@@YAIPBDI@Z)
BondBatman.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CCfghandler::~CCfghandler(void)" (??1CCfghandler@@UAE@XZ)
BondBatman.obj : error LNK2001: unresolved external symbol _WSAStartup@8
BondBatman.obj : error LNK2001: unresolved external symbol "public: long __thiscall CWorker::Initialize(void)" (?Initialize@CWorker@@QAEJXZ)
BondBatman.obj : error LNK2001: unresolved external symbol "public: __thiscall CWorker::CWorker(int)" (??0CWorker@@QAE@H@Z)
BondBatman.obj : error LNK2001: unresolved external symbol "public: void __thiscall CLogHandler::initialize(class CString)" (?initialize@CLogHandler@@QAEXVCString@@@Z)
BondBatman.obj : error LNK2001: unresolved external symbol "public: class CString __thiscall CCfghandler::GetConfigStr(class CString,class CString)" (?GetConfigStr@CCfghandler@@QAE?AVCString@@V2@0@Z)
BondBatman.obj : error LNK2001: unresolved external symbol "public: int __thiscall CCfghandler::GetConfigInt(class CString,class CString)" (?GetConfigInt@CCfghandler@@QAEHVCString@@0@Z)
BondBatman.obj : error LNK2001: unresolved external symbol "public: void __thiscall CCfghandler::SetCfgFile(char *)" (?SetCfgFile@CCfghandler@@QAEXPAD@Z)
BondBatman.obj : error LNK2001: unresolved external symbol "public: __thiscall CCfghandler::CCfghandler(void)" (??0CCfghandler@@QAE@XZ)
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/BondBatman.exe : fatal error LNK1120: 20 unresolved externals
Error executing link.exe.

BondBatman.exe - 21 error(s), 0 warning(s)
...全文
52 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
poplv 2005-09-26
1.
CLogHandler,CCfghandler,CWorker是你自己定义的类吧?BondBatman.cpp中包含了它们的头文件了吗?
2.倒数第二、第三个错误:
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
是由于工程设置不对引起的,解决方法:
Project->Settings-> C/C++选项卡中,Categery选Code Generation,Use run-time library选除“SINGLE-THREADED”外的选项。工程使用多线程DLL。
回复
seaking88 2005-09-26
选择ADD FILES TO PROJECT将.cpp和.h文件加进来就可以了
回复
sailor11 2005-09-26
我知道了,CWork,CLogHandler都在另一个工程里,怎么加进来啊
回复
孤客天涯 2005-09-26
cpp文件或lib文件没有包含
回复
相关推荐
发帖
网络编程
创建于2007-09-28

1.8w+

社区成员

VC/MFC 网络编程
申请成为版主
帖子事件
创建了帖子
2005-09-26 02:11
社区公告
暂无公告