Pampastu
Pampastu

Reputation: 93

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. C++ version Apple clang version 13.1.6 (clang-1316.0.21.2). which version should I use so that the expint method is available?

//#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

error

error

c++ configs c++ configs

Upvotes: 2

Views: 147

Answers (1)

6un9-H0
6un9-H0

Reputation: 1

It may be a compatibility issue with the updated MacOS version or even the M1 (if you have it) chipset. With just the info on the application, it is still undeterminable what the root cause may be.

Upvotes: -1

Related Questions