gpt4 book ai didi

c++ - clang 和 __float128 错误/错误

转载 作者:IT老高 更新时间:2023-10-28 22:24:22 43 4
gpt4 key购买 nike

我已经成功编译了当前 3.3 的 clang 分支。但是随后任何文件的 C++ 编译都会因错误/错误而失败。可以解决吗?

In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/iostream:39:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ostream:39:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ios:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/char_traits.h:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_algobase.h:65:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_pair.h:61:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/move.h:57:
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/type_traits:256:39: error: use of
undeclared identifier '__float128'
struct __is_floating_point_helper<__float128>
^
1 error generated.

最佳答案

您可以使用以下方法修复它:

CXXFLAGS+="-D__STRICT_ANSI__"

关于c++ - clang 和 __float128 错误/错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13525774/

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com