找不到Visual Studio更新1错误属性[[noreturn]] [英] Visual Studio update 1 error attribute not found [[noreturn]]
问题描述
看来vs 2015更新1中的漏洞一直在继续!当我编译一个应用程序(在win7 64位框上32位)时,我收到此错误:
It looks that bugs in vs 2015 update 1 just keep coming! When I compile an application (32 bit on win7 64 bit box), I get this error:
.........
.........
c:\program files(x86)\ microsoft visual studio 14.0 \vc\include\vector(1782):错误C2337:'[':未找到属性
c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(1782): error C2337: '[': attribute not found
........
此后在许多其他错误中级联。这是矢量文件中的功能:
After this cascades in many other errors. Here is the function in vector file:
.........
.........
[[noreturn]] void _Xlen()const
      {   //报告length_error
&NBSP;&NBSP;&NBSP; _Xlength_error(" vector< T>太长了);)
&NBSP;&NBSP;&NBSP; }
$
[[noreturn]] void _Xran()const
&NBSP;&NBSP;&NBSP; &NBSP; {&NBSP;&NBSP; //报告out_of_range错误
&NBSP;&NBSP;&NBSP; _Xout_of_range(" invalid vector< T> subscript");)
&NBSP;&NBSP;&NBSP; }
.........
[[noreturn]] void _Xlen() const
{ // report a length_error
_Xlength_error("vector<T> too long");
}
[[noreturn]] void _Xran() const
{ // report an out_of_range error
_Xout_of_range("invalid vector<T> subscript");
}
.........
我需要在2015年更新1中将哪些选项更改为"了解"这个扩展名?
What option(s) do I need to change in vs 2015 update 1 to 'understand' this extension?
请注意,我不是唯一一个看到此问题的人!这是一个链接:
Please note that I am NOT the only one seeing this issue! Here is a link:
http://stackoverflow.com/questions/34130645/noreturn-attribute-not-recognized-in-c-project-while-building-in-vs- 2015
http://stackoverflow.com/questions/34130645/noreturn-attribute-not-recognized-in-c-project-while-building-in-vs-2015
谢谢,
G。
推荐答案
你的win32代码怎么样?您能否提供完整的代码以帮助我们重现您的问题?
How is your win32 code like? Could you please provide your complete code to help us reproduce your issue?
May
这篇关于找不到Visual Studio更新1错误属性[[noreturn]]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!