-O1/2/3 with -std=c++1y/11/98 - If <cmath> is included i'm getting error: '_hypot' was not declared in this scope
I've just updated MinGW using mingw-get-setup and i'm unable to build anyting that contains <cmath> header if I use anything larger than -O0 with -std=c++1y . (I also tried c++11 and c++98 ) I'm getting errors like this one: 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