读书人

MFC编程异常

发布时间: 2013-11-23 10:52:51 作者: rapoo

MFC编程错误

Linking...
chenyanDlg.obj : error LNK2001: unresolved external symbol "public: class CString __thiscall CARPPacket::GetDPAddr(void)" (?GetDPAddr@CARPPacket@@QAE?AVCString@@XZ)
chenyanDlg.obj : error LNK2001: unresolved external symbol "public: class CString __thiscall CARPPacket::GetSPAddr(void)" (?GetSPAddr@CARPPacket@@QAE?AVCString@@XZ)
chenyanDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CARPPacket::CARPPacket(unsigned char const *,unsigned int)" (??0CARPPacket@@QAE@PBEI@Z)
chenyanDlg.obj : error LNK2001: unresolved external symbol "public: class CString __thiscall CTCPPacket::GetDestPort(void)" (?GetDestPort@CTCPPacket@@QAE?AVCString@@XZ)
chenyanDlg.obj : error c++,MFC
[解决办法]
可能是CARPPacket的头文件没有包括进来
[解决办法]
楼上,明明是链接错误啊!跟头文件有啥关系,是库文件(.lib)没有链接上。

读书人网 >C++

热点推荐