更新到莫哈韦后出现cmath错误
Getting cmath errors after updating to Mojave
我昨天更新到Mojave,从那时起就无法编译c++文件。我收到以下消息:
In file included from test.cpp:4:
In file included from /usr/local/include/bits/stdc++.h:10:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
using ::signbit;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
~~^
完整的信息在这里的pastebin。
文件test.cpp只是打印Hello world,我正在使用命令"maketest"来运行它
注意:我确实知道网上有关于类似问题的线索,但我无法理解它们,并认为它们过于特定于OP。
我遇到过这个问题,在过去的几周里对它进行了大量研究。我找到了一个与评论中提到的不同的临时解决方案。
删除/删除XCode
不幸的是,对我来说,这不是一个好的解决方案,因为它是我的C++IDE。然而,我目前似乎无法用任何其他方式解决这个问题。
这里也提到了解决方案:https://github.com/PointCloudLibrary/pcl/issues/2601
相关文章:
- 警告处理为错误这里有什么问题
- "error: no matching function for call to"构造函数错误
- boost::进程间消息队列引发错误
- C++,OpenCV,尝试显示图像时"OpenCV(4.3.0) Error: Assertion failed (size.width>0 && size.height>0)"此错误
- 有关插入适配器的错误。[错误]请求从 'back_insert_iterator<vector<>>' 类型转换为非标量类型
- QT在错误的班级中寻找空位
- vector.resize()中的分配错误
- 代码在main()中运行,但在函数中出现错误
- cmath抛出错误C2062、C2059、C2143和C2447.cmath包含在矢量文件中
- 更新到莫哈韦后出现cmath错误
- Catalina C++:使用<cmath>标头产生错误:全局命名空间中没有名为 'signbit' 的成员
- 包含 cmath 标头时出现 cmake 编译错误
- VS 2017 中的标头 cmath 智能感知错误
- 在Cygwin上更新为v5.4.0.CMATH会产生错误
- 使用XTGMATH.H和CMATH构建错误
- -O1/2/3 与 -std=c++1y/11/98 - 如果包含,<cmath>我收到错误:"_hypot"未在此范围内声明
- 在Visual Studio 2015中使用cmath时出现约200个错误
- #include <cmath> :"In FIle included from"错误消息?
- 为C++库构建C包装器时出现cmath语法错误
- 从"cmath"和"cstdlib"获得一百个非常相似的编译器错误