"楼层":未找到标识符
'floor': identifier not found
我的代码工作正常,直到编译时突然收到以下消息:
c:program files (x86)microsoft visual studio 12.0vcincludemath.h(700): error C3861: 'floor': identifier not found
我试图排除math.h,但我收到了相同的消息。 当我双击该消息时,它会将我带到使用 Function floor 的文件 math.h 的第 700 行。
然后,我做了一个空项目,只有一个文件,只包含:
#include <iostream>
int main()
{
}
我仍然收到这个错误。我是否不小心删除了某些内容?我怎么能理解它是什么?
对于 MSVS 来说,这是非常奇怪的行为。
1) 尝试创建空项目(没有预编译头)
2) 尝试更改
#include <math.h>
自
#include <cmath>
如果这没有帮助以及创建新的空项目,唯一的方法是确保您的PC上没有病毒并重新安装Visual Studio。
相关文章:
- 在C++中,是否可以基于给定的标识符创建基类的新实例,反之亦然
- #ifdef和未声明的标识符
- f2、f3、f4标识符未找到
- 设置 Visual Studio for MPI: 找不到标识符错误
- 未声明的标识符编译暗黑破坏神 2 程序"muleview"
- 在顶点着色器中使用 OpenGl 的未声明标识符,我在顶点着色器中绘制三角形时遇到问题
- Google protobuf 时间戳未声明标识符,在 Windows 上具有C++
- 如何让 GCC/Clang 在保留标识符上出错
- 错误 C2760:语法错误:映射迭代器上意外的标记"标识符",预期的";"
- 当简单捕获中的标识符显示为参数的声明符 ID 时,没有编译器诊断
- 在C++中返回不正确的楼层函数值
- 使用说明符 extern 声明的C++中的标识符链接
- C++:枚举:错误:应使用标识符而不是"}"
- 为什么我们不能重复使用具有不同模板参数的别名模板标识符?
- Visual Studio C++ PlaySound 标识符未定义
- 为什么我们不编写可以处理C++标识符的汇编器和链接器?
- 使用未声明的标识符"sqrt"?
- 找不到标识符合并
- 在模板化函数中重新定义(忽略)的 SWIG 标识符
- "楼层":未找到标识符