升级后macOS Catalina上math.h的多个问题

时间:2020-07-23 15:22:18

标签: macos macos-catalina cmath

我已将系统更新为macOS catalina 10.15.6,并且遇到了https://stackoverflow.com/a/61519060/3616359描述和解决的问题。我遇到了类似的问题:

/usr/local/include/boost/math/special_functions/fpclassify.hpp:552:17: error:
no member named 'isnan' in namespace 'std'; did you
mean simply 'isnan'

我只是将<math.h>中的/Library/Developer/CommandLineTools/usr/include/c++/v1/math.h替换为/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath。但是,这会引起另一种类型的问题,例如:

/Library/Developer/CommandLineTools/usr/include/c++/v1/math.h:764:42: error:
  no member named 'fabs' in the global namespace

我编译代码的唯一方法是在/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath调用期间两次修改make

我还尝试了来自同一发布问题的其他建议,但没有帮助。 谁能解决这个问题?

1 个答案:

答案 0 :(得分:0)

解决方案似乎是保留 <!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> <link href="https://unpkg.com/gijgo@1.9.13/css/gijgo.min.css" rel="stylesheet" type="text/css" /> <script src="https://unpkg.com/gijgo@1.9.13/js/gijgo.min.js" type="text/javascript"></script> <script src="https://unpkg.com/gijgo@1.9.13/js/messages/messages.fr-fr.js" type="text/javascript"></script> </head> <body> <div class="gj-margin-top-10"> <input id="datepicker" width="276" /> </div> </body> </html> <!-- end snippet --> ,并在该行之后还将#include<math.h>放在#inlude</Library/Developer/CommandLineTools/usr/include/c++/v1/math.h>文件中。