【问题标题】:Dev C, math.h problems开发 C,math.h 问题
【发布时间】:2013-05-02 15:06:05
【问题描述】:

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

【问题讨论】:

  • 你从哪里下载 devc++?是最新版本吗?orwell devc++还是bloodshed devc++?
  • 我已经尝试过流血 v. 4.9.9.2 和 orwell v. 5.4.1。结果都是一样的。
  • 为什么你不能试试 code::blocks?它更好,更免费
  • 我也尝试过代码块,结果相同。需要 math.h 的所有内容都会导致错误。
  • 好的,然后在出现错误的地方发布代码。可能不是 IDE 问题。

标签: c++ c imagemagick dev-c++ math.h


【解决方案1】:

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

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

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

【讨论】:

  • 我无法使用 Visual Studio Express。 Imagemagick 需要构建,而 VSE 没有构建它所需的库。
猜你喜欢
  • 2023-03-16
  • 2022-12-04
  • 1970-01-01
  • 2022-06-11
  • 2014-12-18
  • 2015-08-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多