IBM XLC编译失败带有错误消息“测试” std ::功能;是出乎意料的

发布于 2025-02-03 07:15:47 字数 122 浏览 2 评论 0原文

我使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

真心难拥有 2025-02-10 07:15:47

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文