I get an error when I try compiling with #include <cmath>, yes, I've tried with -lm, still does not work.
Compiler: MinGW
Compile.bat:
@echo off
echo Compiling...
g++.exe main.cpp -o "Distance.exe" -lm
pause
cmath IS in MinGw include folder. C:\MinGW\include\c++\3.4.5\cmath
Any ideas?