简体   繁体   English

expint c++ 方法 om Macos M1

[英]expint c++ method om Macos M1

i tried run method expint from cmath and got error, i used c++17, c++17 should support this method but it doesn't see it.我尝试从 cmath 运行方法expint并得到错误,我使用了 c++17,c++17 应该支持这种方法,但它没有看到它。 C++ version Apple clang version 13.1.6 (clang-1316.0.21.2). C++ 版本 Apple clang 版本 13.1.6 (clang-1316.0.21.2)。 which version should I use so that the expint method is available?我应该使用哪个版本才能使用 expint 方法?

//#define __STDCPP_WANT_MATH_SPEC_FUNCS__ 1
//#define __STDCPP_MATH_SPEC_FUNCS__ 201003L

#include <cmath>
#include <iostream>

int main(int argc, const char * argv[]) {
    std::cout << "Hello, World!\n";
    
    std::expint(10.4);
    return 0;
}

expint docs one more expint docs expint docs 另一个 expint 文档

error错误

错误

c++ configs c++ 配置C++ 配置

It may be a compatibility issue with the updated MacOS version or even the M1 (if you have it) chipset.这可能是更新后的 MacOS 版本甚至 M1(如果有)芯片组的兼容性问题。 With just the info on the application, it is still undeterminable what the root cause may be.仅凭应用程序上的信息,仍然无法确定根本原因可能是什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM