[英]no member named 'isinf' in the global namespace
我在 Mac 上编译几乎任何东西时都遇到问题(包括例如 xgboost),这表明问题不在于单个项目,而在于我的机器上出现了问题。 我团队中的其他人可以很好地编译。
当我尝试编译时,出现如下错误:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'isinf' in the global namespace
using ::isinf;
都是cmath
中的问题。
我有:
cmake
是否是最新的。xcode-select --install
完全删除并重新安装命令行工具sudo xcode-select --reset
make configure
输出与同事进行比较 - 它是相同的,所有工具/库的所有版本也是如此brew
中任何看起来有问题的东西 - 看不到任何东西。 冲泡医生说我可以冲泡了(一切都很好)。我在 GitHub 或此处发现的任何问题都没有指向问题根本原因的答案。
这里发生了什么? 至少,我在哪里可以寻找更多的线索?
您可以尝试使用 CommandLineTools SDK 而不是 XCode.app SDK。 运行“xcode-select --reset”将使 macOS 回退以使用 XCode.app SDK。
#Check the current sdk
xcrun --show-sdk-path
#Change sdk
sudo xcode-select -s /Library/Developer/CommandLineTools #Using CommandLineTools SDK
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer #Using XCode.app SDK
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.