[英]C++ compile error in xlocale in vxworks
I am compiling a C++ code on Vxworks6.8 and i am facing with following error 我正在Vxworks6.8上编译C ++代码,并且遇到以下错误
d:/windri~1/gnu/412-vx~1.8/lib/gcc/../../include/c++/4.1/xlocale: In function 'const _Facet& std::use_facet(const std::locale&) [with _Facet = std::ctype<char>]':
1>d:/WindRiver/gnu/4.1.2-vxworks-6.8/lib/gcc/../../include/c++/4.1/xlocale(1341) : error: instantiated from here
1>d:/WindRiver/gnu/4.1.2-vxworks-6.8/lib/gcc/../../include/c++/4.1/xlocale(316) : error: exception handling disabled, use -fexceptions to enable
I am not sure why i am facing with above error? 我不确定为什么会遇到上述错误? what feature in C++ will call use_facet mentioned in above error?
C ++中的什么功能将调用上述错误中提到的use_facet?
I have no clue how to solve above error so any inputs are welcome. 我不知道如何解决以上错误,因此欢迎任何输入。 Thanks for your inputs.
感谢您的投入。 for your information i am not supposed to enable exceptions.
为了您的信息,我不应该启用例外。
Most likely you are using some Standard headers such as <iostream>
. 您很可能正在使用某些标准标头,例如
<iostream>
。 STL and Standard Library heavily uses exceptions, so if you want to disable them you will be unable to use most of the features of Standard Library. STL和标准库大量使用异常,因此,如果要禁用它们,则将无法使用标准库的大多数功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.