0

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);
user2207973
  • 1
  • 1
  • 3

1 Answers1

1

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

Mike U
  • 79
  • 2
  • 9
  • I can't use Visual Studio Express. Imagemagick requires a build, and VSE doesn't have the required libraries to build it. – user2207973 May 03 '13 at 15:48