在写程序的时候报了下面一些错误,之前以为是某个函数没有被定义,只是申明了,一般在vs里面申明了没定义是被报错的,但vc6.0没有报错,而相似 的报错结果的原因是没有添加一个工程进来。之前在别的程序里面添加一个类到当前目录,如果引用了头文件而没有添加到工程中的话就会出现下面无法解析的错误
Linking…
MposSnWrite.obj : error LNK2001: unresolved external symbol “public: virtual __thiscall CCommunication::~CCommunication(void)” (??1CCommunication@@UAE@XZ)
MposSnWriteDlg.obj : error LNK2001: unresolved external symbol “public: virtual __thiscall CCommunication::~CCommunication(void)” (??1CCommunication@@UAE@XZ)
MposSnWriteDlg.obj : error LNK2001: unresolved external symbol “public: __thiscall CCommunication::CCommunication(void)” (??0CCommunication@@QAE@XZ)
MposSnWriteDlg.obj : error LNK2001: unresolved external symbol “public: int __thiscall CCommunication::SetTime(void *,unsigned int,void *,unsigned int *)” (?SetTime@CCommunication@@QAEHPAXI0PAI@Z)
MposSnWriteDlg.obj : error LNK2001: unresolved external symbol “public: int __thiscall CCommunication::GetHandShak(void)” (?GetHandShak@CCommunication@@QAEHXZ)
MposSnWriteDlg.obj : error LNK2001: unresolved external symbol “public: int __thiscall CCommunication::OpenDeviceInfo(unsigned long,unsigned long,int)” (?OpenDeviceInfo@CCommunication@@QAEHKKH@Z)
Debug/MposSnWrite.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.
MposSnWrite.exe - 7 error(s), 0 warning(s)