简体   繁体   English

1 IntelliSense:预期为')'c:\\程序文件(x86)\\ Microsoft Visual Studio 10.0 \\ vc \\ include \\ crtdefs.h 551 13-构建时出现Visual Studio错误

[英]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: 在错误列表窗口中,执行以下操作:

  1. Right click 右键点击
  2. Un-check show intellisense errors 取消选中显示智能提示错误
  3. Solve other errors in your code and check if re-build succeeds 解决代码中的其他错误,并检查重新构建是否成功

在此处输入图片说明

If it succeeds, you can continue ignoring intellisense errors. 如果成功,您可以继续忽略智能感知错误。

  1. 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.

相关问题 Visual Studio致命错误C1084:无法读取包含文件:'c:\\ program files(x86)\\ microsoft visual studio 10.0 \\ vc \\ include \\ map':权限被拒绝 - Visual Studio fatal error C1084: Cannot read include file: 'c:\program files (x86)\microsoft visual studio 10.0\vc\include\map': Permission denied 我在笔记本电脑上找不到文件夹C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0 \\ VC \\ include \\ gl。 如何添加? - I cannot find the folder C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\gl on my laptop. How do I add it? 在 Microsoft Visual Studio 的 x86 C++ 应用程序中集成犰狳 - Integration of Armadillo in x86 C++ Application in Microsoft Visual Studio 调试X86生成的Visual Studio链接器错误 - Visual Studio Linker Error for Debug X86 Build 'CObject :: CObject':无法访问在'CObject'd:\\ Program Files \\ Microsoft Visual Studio 9.0 \\ vc \\ atlmfc \\ include \\ afxcoll.h中声明的私有成员 - 'CObject::CObject' : cannot access private member declared in class 'CObject'd:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxcoll.h 编译C ++程序时在Visual Studio代码中包含错误 - Include error in visual studio code while compiling a C++ program C ++ Visual Studio错误:IntelliSense:预期一条语句 - C++ Visual Studio Error: IntelliSense: expected a statement 错误PRJ0002:从'C:\\ Program Files \\ Microsoft Visual Studio 9.0 \\ VC \\ bin \\ cl.exe'返回错误结果-1073741515 - error PRJ0002 : Error result -1073741515 returned from 'C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe' Visual Studio 2012本机C ++ DLL x86编译 - Visual Studio 2012 native C++ DLL x86 compilation 程序不在 Visual Studio 上构建 - Program not building on Visual studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM