【问题标题】:declaration of non-variable in loop initial decleration在循环初始声明中声明非变量
【发布时间】:2016-06-07 13:00:12
【问题描述】:

我正在编译我之前成功编译的代码。但这一次它给了我一个错误:

错误:在“for”循环初始声明中声明非变量“mxmlGetFirstChild(current)”

我正在编译这段代码cAER这是一个很大的代码,这里是它的一部分:

for (mxml_node_t *current = mxmlGetFirstChild(node); current!=NULL; current = mxmlGetNextSibling){

... }

如果有人给我解决方案,我将不胜感激。 操作系统:Ubuntu 12.04 64bit 海湾合作委员会:4.9.2 std 标志设置为 c99(我还测试了 c9x、gnu99 和 c11) libmxml1 2.6-2 已安装

【问题讨论】:

    标签: loops variables declaration


    【解决方案1】:

    我升级到 Ubuntu 14.04 并解决了问题。仍然不知道为什么它在 12.04 起作用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-20
      • 1970-01-01
      • 2013-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多