I just installed devcpp, and am attempting to make sure it is working. When I ran into compile errors surrounding math.h. I am using a couple of simple programs that have been compiled and run before, so there shouldn't be any problems there. I would normally use cmath instead, but I need to use Magick++ for a few things as well, which uses math.h. Has anybody run into this? Know of a work around?
The errors are
Line 594 of math.h expected ')' before '(' token
Line 594 of math.h expected ',' or ';' before '(' token
'abs' undeclared
line 594
extern double __cdecl nearbyint (double);
and in context
/* 7.12.9.2 Double in C89 */
extern float __cdecl floorf (float);
extern long double __cdecl floorl (long double);
/* 7.12.9.3 */
extern double __cdecl nearbyint (double);
extern float __cdecl nearbyintf (float);
extern long double __cdecl nearbyintl (long double);