[英]1 IntelliSense: expected a ')' c:\program files (x86)\microsoft visual studio 10.0\vc\include\crtdefs.h 551 13 - Visual Studio Error while building
I am trying to build a solution and I am getting the following error. 我正在尝试建立解决方案,但出现以下错误。
IntelliSense: expected a ')' in crtdefs.h in the following line: IntelliSense:在以下行中的crtdefs.h中应为“)”:
__declspec (__nothrow) void test();
There is an error line in "__nothrow". “ __nothrow”中有错误行。 I am trying to run C code in C++.. 我正在尝试在C ++中运行C代码。
Am I missing some Visual C++ directories?? 我是否缺少一些Visual C ++目录? It was working last time when I tried to build solution. 上次尝试构建解决方案时,它正在工作。
In your error list window, do the following: 在错误列表窗口中,执行以下操作:
If it succeeds, you can continue ignoring intellisense errors. 如果成功,您可以继续忽略智能感知错误。
Sometimes it can be annoying to work with intellisense tell you that your code is wrong. 有时使用智能感知会很烦人,告诉您您的代码是错误的。 You can also disable intellisense error reporting using: 您还可以使用以下命令禁用智能感知错误报告:
tools -> options -> text editor -> c/c++ -> Advanced -> Disable Error Reporting 工具->选项->文本编辑器-> c / c ++->高级->禁用错误报告
Change this to true and the errors will stop getting shown. 将其更改为true ,错误将停止显示。
5) as you have specifically mentioned, 5)正如您特别提到的,
I am trying to run C code in C++. 我正在尝试在C ++中运行C代码。
In case you have headers like stdlib
in your C code, change it to cstdlib
in C++. 如果您的C代码中有诸如stdlib
标头,请在C ++中将其更改为cstdlib
。
Look for other name changes that need to be done for header file names. 查找需要对头文件名进行的其他名称更改。 Check out the seciton on deprecated header from the followign link: http://en.cppreference.com/w/cpp/header 在以下关注链接中查看不建议使用的标头上的内容: http : //en.cppreference.com/w/cpp/header
Please let me know what solved your problem afterwards. 请让我知道之后解决了您的问题的原因。 :) :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.