未在此范围中声明变量-Mingw w64
variable not declared in this scope - Mingw w64
我在Mingw 64位中收到此错误
error: '_controlfp' was not declared in this scope
我尝试使用包含float.h
#include <float.h>
这是我的声明
uint32_t old;
_controlfp_s(&old, _PC_64, _MCW_PC);
然而,我仍然有这个问题。此外,我添加了mingw的include目录的路径作为第一个要搜索的路径。关于如何解决此问题的任何建议。
此定义存在于float.h中。看起来mingw64试图在C:mingw64x86_64-w64-mingw32include
中的float.h查找此定义,但此定义存在在文件"C:\mingw64\x86_64-w64-mingw32\include"中。为了解决这个问题,我将定义复制到实际的源文件中。
相关文章:
- 如何创建一个CMake变量,除非显式重写,否则使用默认值
- 将成员变量添加到共享库中的类中,不会破坏二进制兼容性吗
- 将数组的地址分配给变量并删除
- 为"adjacent"变量赋值时出现问题
- enum是C++中的宏变量还是整数变量
- 在全局变量中保存类的实例以重新创建类(创建"backup")
- 用C++中的一个变量定义一个常量
- 具有奇怪重复模板模式的派生类中的成员变量已损坏
- 在VS代码中交叉编译Windows与Linux上的MinGW的SDL程序
- 你能重载对象变量名本身返回的内容吗
- 内置函数可查看CPP中的成员变量
- 是否可以初始化不可复制类型的成员变量(或基类)
- 在 MinGW 和 MinGW-64 上执行命令后变量为空?
- 我正在尝试在Eclipse中构建一个C 项目,但是即使在使用MINGW路径设置路径变量之后,也会获得构建错误
- 未在此范围中声明变量-Mingw w64
- 除了更改环境变量"PATH"之外,您还需要做什么才能让 Eclipse 识别 MinGW?
- 如何使用 mingw 读取管道并将其放入字符串变量中
- 如何在安装MinGW (Windows 32位)时设置环境变量PATH
- 在Windows 7下运行MinGW gcc编译器,不设置环境变量
- 如何查找已安装的MinGW GCC编译器的PATH变量