永发信息网

MFC删除了文件编译发生错误

答案:3  悬赏:80  手机版
解决时间 2021-02-05 23:35
DoubleList SingleList SingleList1都是我已经删除的类 而且在文件内搜索这三个词都找不到 编译也没有错误 而连接时却有这三个错误
错误代码如下:
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\桌面\LinkList1\DoubleList.cpp': No such file or directory
SingleList.cpp
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\桌面\LinkList1\SingleList.cpp': No such file or directory
SingleList1.cpp
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\桌面\LinkList1\SingleList1.cpp': No such file or directory
Generating Code...
最佳答案
在资源管理器中删除xxx.h xxx.cpp
文本方式打开MMM.dsp,删除以下两部分
//xxx为你要删除的类,MMM为你的工程名称
SOURCE=.\XXX.cpp
# End Source File
# Begin Source File
SOURCE=.\XXX.h
# End Source File
# Begin Source File
或按CTRL+W打开ClassWizard,此时会弹出对话框提示xxx.h和xxx.cpp已经不存在了,确认后弹出Repair Class Information对话框,点Remove可将其移除
全部回答
你的文件是删除了 可是以前的引用还有 用CTRL+F
iostream.h已经不被.net支持了,你要用的话加上using namespace std; #include "stdafx.h" #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout<<"hello"<
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯