我刚刚安装了 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);