【发布时间】:2020-07-23 15:22:18
【问题描述】:
我已将系统更新到 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'
我只是在/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath 中将<math.h> 替换为/Library/Developer/CommandLineTools/usr/include/c++/v1/math.h。但是,这会导致另一种类型的问题,例如:
/Library/Developer/CommandLineTools/usr/include/c++/v1/math.h:764:42: error:
no member named 'fabs' in the global namespace
我编译代码的唯一方法是在make 调用期间修改/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath 两次。
我还尝试了来自同一个发布问题的其他建议,但没有帮助。 谁能帮忙解决这个问题?
【问题讨论】:
标签: macos macos-catalina cmath