--------------------Configuration: ChatServer - Win32 Debug--------------------
Linking...
ListeningSocket.obj : error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CListeningSocket::GetRuntimeClass(void)const " (?GetRuntimeClass@CListeningSocket@@UBEPAUCRuntimeClass@@XZ)
Debug/ChatServer.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.ChatServer.exe - 2 error(s), 0 warning(s)

解决方案 »

  1.   

    你只包含了一个DLL的头文件,没有包含一个lib文件吧
    在FileView里添加这个lib文件
      

  2.   

    但是我没有用到lIB文件,具体是什么原因啊,能否说得详细点啊,
      

  3.   

    确保你INCLUDE 的文件在FILEVIEW里有
      

  4.   

    没有找到连接函数,好像是关于socket的,需要你看看调用了什么函数,然后需要link 那些
    lib文件,最后打开project->link那页,把文件添加进去,win sock好像要ws2_32.lib 这个文件才能正确连接winsock2的dll
      

  5.   

    Add the DECLARE_DYNCREATE macro in the .H module for the class, 
    then include that module in all .CPP modules that need access to 
    objects of this class.If DECLARE_DYNCREATE is included in the class declaration, then IMPLEMENT_DYNCREATE must be included in the class implementation
      

  6.   

    我知道是什么原因了,忘了写IMPLEMENT_DYNAMIC