这是什么错啊

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)
...全文
85 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
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文件没有包含

18,363

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧