相关疑难解决方法(0)

-O1/2/3 with -std = c ++ 1y/11/98 - 如果包含<cmath>我收到错误:'_hypot'未在此范围内声明

我刚刚更新MinGW的使用mingw-get-setup状态,我无法构建一个包含点儿什么<cmath>,如果我使用任何大于头-O0-std=c++1y.(我也试过c++11c++98)我得到象这样的错误之一:

g++.exe -pedantic-errors -pedantic -Wextra -Wall -std=c++1y -O3  -c Z:\Projects\C++\L6\src\events.cpp -o obj\src\events.o
In file included from z:\lander\mingw\lib\gcc\mingw32\4.8.1\include\c++\cmath:44:0,
                 from Z:\Projects\C++\L6\src\utils.h:4,
                 from Z:\Projects\C++\L6\src\events.cpp:10:
z:\lander\mingw\include\math.h: In function 'float hypotf(float, float)':
z:\lander\mingw\include\math.h:635:30: error: '_hypot' was not declared in this scope
 { return (float)(_hypot (x, y)); }
Run Code Online (Sandbox Code Playgroud)

我这边有什么不对劲吗?
或mingw repo的版本被窃听?如果是这样,这个标题有什么快速解决方法吗?

c++ mingw mingw32

9
推荐指数
1
解决办法
5176
查看次数

标签 统计

c++ ×1

mingw ×1

mingw32 ×1