gpt4 book ai didi

c++ - 如何在 Xcode 中使用 boost::multiprecision::float128

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:27:34 25 4
gpt4 key购买 nike

我正在尝试在 xCode 项目中使用 boost::multiprecision::float128。

我的编译器版本是Apple clang 版本 11.0.0 (clang-1100.0.20.17)目标:x86_64-apple-darwin18.7.0线程模型:posix

我正在使用 boost.1.71.0

出现以下编译错误

'quadmath.h' file not found

在 float128.hpp 中

extern "C" {
#include <quadmath.h>
}

我看到了几个关于这个问题的帖子

因为我发现的讨论主题已经有几年了

  • 那么我不能在 xCode 项目中使用 boost::multiprecision::float128 仍然是真的吗?
  • 可能是在 boost 设置过程中丢失了什么东西,它有 lib 文件夹,而在 boost 设置过程中丢失了什么东西?
  • 对于我当前的编译器版本,是否有解决此问题的方法?

最佳答案

遗憾的是,它仍然不受支持。 “vanilla clang”比 Apple clang 更有希望,但仍有许多工作要做,以确保所有部分都到位。

接下来的问题是here , 和 work has been done让它用 clang >=8 编译。但是 Apple Clang 仍然不起作用。

作为解决方法,您可以使用 boost::multiprecision::cpp_bin_float_quad

关于c++ - 如何在 Xcode 中使用 boost::multiprecision::float128,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57755032/

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