我在学cximage,呵呵,只不过刚开始。
首先我看了demo,想抄抄它的代码做做看,我从打开一个图像开始,我从 demoDoc.cppp里copy BOOL CDemoDoc::OnOpenDocument(LPCTSTR lpszPathName) 到自己的文件里,然后补充缺少的函数与变量以及包含文件。一切编译过去了,没有缺少函数与变量以及包含文件,但确出现了 link error
--------------------Configuration: demo - Win32 Debug--------------------
Linking...
Creating library Debug/demo.lib and object Debug/demo.exp
demo.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::GetC(void)" (?GetC@CxMemFile@@UAEJXZ)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::GetC(void)" (?GetC@CxMemFile@@UAEJXZ)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::GetC(void)" (?GetC@CxMemFile@@UAEJXZ)
demo.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::PutC(unsigned char)" (?PutC@CxMemFile@@UAE_NE@Z)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::PutC(unsigned char)" (?PutC@CxMemFile@@UAE_NE@Z)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::PutC(unsigned char)" (?PutC@CxMemFile@@UAE_NE@Z)
demo.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::Error(void)" (?Error@CxMemFile@@UAEJXZ)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::Error(void)" (?Error@CxMemFile@@UAEJXZ)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::Error(void)" (?Error@CxMemFile@@UAEJXZ)
demo.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Eof(void)" (?Eof@CxMemFile@@UAE_NXZ)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Eof(void)" (?Eof@CxMemFile@@UAE_NXZ)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Eof(void)" (?Eof@CxMemFile@@UAE_NXZ)
demo.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Flush(void)" (?Flush@CxMemFile@@UAE_NXZ)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Flush(void)" (?Flush@CxMemFile@@UAE_NXZ)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Flush(void)" (?Flush@CxMemFile@@UAE_NXZ)
。
demo.exe - 75 error(s), 0 warning(s)
大家帮我看看,还要做什么?我看demo里的 tool-》options-》directories 里也没有什么要添加的,不知道为什么。谢谢指点。
首先我看了demo,想抄抄它的代码做做看,我从打开一个图像开始,我从 demoDoc.cppp里copy BOOL CDemoDoc::OnOpenDocument(LPCTSTR lpszPathName) 到自己的文件里,然后补充缺少的函数与变量以及包含文件。一切编译过去了,没有缺少函数与变量以及包含文件,但确出现了 link error
--------------------Configuration: demo - Win32 Debug--------------------
Linking...
Creating library Debug/demo.lib and object Debug/demo.exp
demo.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::GetC(void)" (?GetC@CxMemFile@@UAEJXZ)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::GetC(void)" (?GetC@CxMemFile@@UAEJXZ)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::GetC(void)" (?GetC@CxMemFile@@UAEJXZ)
demo.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::PutC(unsigned char)" (?PutC@CxMemFile@@UAE_NE@Z)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::PutC(unsigned char)" (?PutC@CxMemFile@@UAE_NE@Z)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::PutC(unsigned char)" (?PutC@CxMemFile@@UAE_NE@Z)
demo.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::Error(void)" (?Error@CxMemFile@@UAEJXZ)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::Error(void)" (?Error@CxMemFile@@UAEJXZ)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CxMemFile::Error(void)" (?Error@CxMemFile@@UAEJXZ)
demo.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Eof(void)" (?Eof@CxMemFile@@UAE_NXZ)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Eof(void)" (?Eof@CxMemFile@@UAE_NXZ)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Eof(void)" (?Eof@CxMemFile@@UAE_NXZ)
demo.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Flush(void)" (?Flush@CxMemFile@@UAE_NXZ)
demoDoc.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Flush(void)" (?Flush@CxMemFile@@UAE_NXZ)
demoView.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CxMemFile::Flush(void)" (?Flush@CxMemFile@@UAE_NXZ)
。
demo.exe - 75 error(s), 0 warning(s)
大家帮我看看,还要做什么?我看demo里的 tool-》options-》directories 里也没有什么要添加的,不知道为什么。谢谢指点。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货