peakzhang 发表于 2007-12-13 23:35:10

MFC下ACE链接问题

Linking...


LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use

/NODEFAULTLIB:library
Client.obj : error LNK2001: unresolved external symbol "public: __thiscall

CClientWork::CClientWork(void)" (??0CClientWork@@QAE@XZ)

Sever.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall

CServerAcceptor::handle_close(void *,unsigned long)" (?

handle_close@CServerAcceptor@@UAEHPAXK@Z)


Sever.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall

CClientService::handle_close(void *,unsigned long)" (?

handle_close@CClientService@@UAEHPAXK@Z)



CClientWork继承自ACE_Task_Base      

CServerAcceptor和CClientService继承自ACE_Event_Handler

头文件包含是这样

#include "ace/Task.h"
#include "ace/INET_Addr.h"
#include "ace/SOCK_Acceptor.h"
#include "ace/Reactor.h"
#include "ace/SOCK_Stream.h"

peakzhang 发表于 2007-12-13 23:35:27

肯定是没有实现CClientService::handle_close
页: [1]
查看完整版本: MFC下ACE链接问题