Replace <cmath> with <math.h> in all files. <cmath> is only in C++.
<cmath>
<math.h>
Additionally, compile with /TC for C files & /TP for C++ files.
/TC
/TP