0

我刚刚安装了 devcpp,并试图确保它正常工作。当我遇到围绕 math.h 的编译错误时。我正在使用一些之前已经编译和运行过的简单程序,所以那里应该没有任何问题。我通常会改用 cmath,但我也需要使用 Magick++ 来处理一些事情,它使用 math.h。有人遇到过这个吗?知道解决方法吗?

错误是

math.h 的第 594 行在 '(' 标记之前应为 ')'

math.h 的第 594 行预期为 ',' 或 ';' 在 '(' 标记之前

'abs' 未声明

第 594 行

 extern double __cdecl nearbyint (double);

在上下文中

/* 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);
4

1 回答 1

1

这有帮助吗 - http://www.cplusplus.com/forum/general/5207/

我现在也在用Dev C++,受不了了,但是上课是必须的。有没有理由你不能只使用 Visual Studio Express,它也是免费下载的 -

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

于 2013-05-02T17:04:05.377 回答