我以前建立了这样的类:class CInstructionSheet : public CPropertySheet但是后来我删除这个类的两个文件后编译就出这样的错误:CommandView.obj : error LNK2001: unresolved external symbol "public: __thiscall CInstructionSheet::CInstructionSheet(char const *,class CWnd *,unsigned int)" (??0CInstructionSheet@@QAE@PBDPAVCWnd@@I@Z)
CommandView.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CInstructionSheet::~CInstructionSheet(void)" (??1CInstructionSheet@@UAE@XZ)
Debug/Command.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.在我的程序中已经找不到任何cinstructionsheet了呀,为什么还出这样的错误?
CommandView.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CInstructionSheet::~CInstructionSheet(void)" (??1CInstructionSheet@@UAE@XZ)
Debug/Command.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.在我的程序中已经找不到任何cinstructionsheet了呀,为什么还出这样的错误?
解决方案 »
- 关于“虚拟内存”的一些问题
- 如何给文件加上数字签名呢?数字签名有什么用呀?与md5实现的功能一样吗?
- 以Use MFC in a Static Library编译时报错,而以use mfc in shared dll时编译正常
- ms 浏览器控件的获取控件内容大小问题
- 为何我在一个分割窗口中放入CHtmlView,在调试环境中运行,会出现异常?
- 一个很菜的问题......,别笑话偶
- 关于Visual C++ 编译参数的设置问题
- 如何得到桌面的所有图标。。
- 救火!!如何使应用程序脱离VC环境后,能够正常稳定的运行!!
- 请给介绍一本AUTOCAD2000用VC++进行二次开发的书。
- 无解之题-----能给出满意答案者连加500分*3次
- 如何再VC中使用STL
查找 你对这个头文件还有引用
如果还不行搜索硬盘里的InstructionSheet.cpp和InstructionSheet.h文件,删除掉,再按上面方法重新来过,再不行,在程序里搜索与“InstructionSheet”相关的字符创,删除,保证ok 。
1:先从workspace中的fileview中删除对应的.h和.cpp文件。
2.再关闭项目,从实际的文件夹中删除对应的.h和.cpp文件。
3.再删除.clw文件。
打开项目,rebuild all。
1:先从workspace中的fileview中删除对应的.h和.cpp文件。
2.再关闭项目,从实际的文件夹中删除对应的.h和.cpp文件。
3.再删除.clw文件。
打开项目,rebuild all。1:先从workspace中的fileview中删除对应的.h和.cpp文件。
2.再关闭项目,从实际的文件夹中删除对应的.h和.cpp文件。
3.再删除.clw文件。
打开项目,rebuild all。