user2207973
user2207973

Reputation: 1

Dev C, math.h problems

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);

Upvotes: 0

Views: 3169

Answers (1)

Mike U
Mike U

Reputation: 79

Does this help at all - http://www.cplusplus.com/forum/general/5207/

I'm also using Dev C++ right now and can't stand it, but it is required for a class. Is there a reason you can't just use Visual Studio Express, it is also a free download -

http://www.microsoft.com/en-us/download/details.aspx?id=34673

Upvotes: 1

Related Questions