IBM XLC编译失败带有错误消息“测试” std ::功能;是出乎意料的
我使用IBM XLC来编译C ++代码,但由于错误消息“ test“ std :: function”是出乎意料的。我在代码中使用std :: function。 13.1顺便说一句,相同的代码与G ++一起汇编
。
I use IBM xlc to compile C++ code but it failed with error message "The test "std::function" is unexpected. I use std::function in my code and add compile option "-qlanglvl=extended0x". The xlc version is 13.1. By the way, the same code is compiled successfully with G++.
Does anybody know the reason. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
XLC编译器-Qlanglvl = Extended0x仅具有实验性C ++ 11支持,并且显着缺少C ++ 11库。您需要移至V16 XLClang ++编译器或V17 IBM-Clang ++编译器以获得完整的C ++ 11支持。
The xlC compiler -qlanglvl=extended0x only has experimental C++11 support and is notably missing C++11 library. You need to move up to the V16 xlclang++ compiler or V17 ibm-clang++ compiler to get full C++11 support.