我怎样才能解决这个错误...... [英] How can i solve this error...
本文介绍了我怎样才能解决这个错误......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码工作正常,直到昨天但是今天...它出现了这个错误:
My code was working fine till yesterday but today... It is coming up with this error:
c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(4038): error C2039: 'exception' : is not a member of 'std'
c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(4038): error C3861: 'exception': identifier not found
我刚刚更改了包含我的文件夹的名称项目....
请帮忙。
I just changed the name of the folder containing my project....
Please help.
推荐答案
查看你的内容
Check out what you are including
#include <exception.h></exception.h>
或
or
#include <exception></exception>
第二个应该适用于你的情况。
Second one should work in your case.
<exception> defines only the base std::exceptionclass;
if you want child classes like std::runtime_error, you must include the <stdexcept> header.
https://stackoverflow.com/questions/4861777/missing-stdruntime-error-in-qtmingw
这篇关于我怎样才能解决这个错误......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文