北大侠客行MUD论坛

 找回密码
 注册
搜索
热搜: 新手 wiki 升级
查看: 4521|回复: 1

求助fluffos 3.0-alpha6.3编译出错问题

[复制链接]
发表于 2013-7-18 12:46:23 | 显示全部楼层 |阅读模式
在make这步:
mapping.cc文件612行内容:  for (auto item: result) {
    auto key = item.first;
    auto values = item.second;    // key is copied, but not freed, will be freed together with map.
    svalue_t *l = find_for_insert(m, &key, 0);
    l->type = T_ARRAY;
    l->u.arr = allocate_empty_array(values.size());
    for (unsigned int i = 0; i < values.size(); i++) {
      // values are copied.
      assign_svalue_no_free(&l->u.arr->item, values);
    }  


报错信息:
mapping.cc: In function ‘void f_unique_mapping()’:
mapping.cc:612: 错误:expected initializer before ‘:’ token
mapping.cc:1220: 错误:expected primary-expression at end of input
mapping.cc:1220: 错误:expected ‘;’ at end of input
mapping.cc:1220: 错误:expected primary-expression at end of input
mapping.cc:1220: 错误:expected ‘)’ at end of input
mapping.cc:1220: 错误:expected statement at end of input
mapping.cc:1220: 错误:expected ‘}’ at end of input
make[1]: *** [mapping.o] 错误 1



612行我也没看出啥错误问题,

void add_mapping_shared_string(mapping_t *m, const char *key, char *value)
{
  svalue_t *s;

  s = insert_in_mapping(m, key);
  s->type = T_STRING;
  s->subtype = STRING_SHARED;
  s->u.string = ref_string(value);
}      1220这是最后一行

北大侠客行MUD,中国最好的MUD
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2013-7-22 15:13:45 | 显示全部楼层
这个我已经回答了 是gcc版本太低造成的 至少要4.6以上
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|北大侠客行MUD ( 京ICP备16065414号-1 )

GMT+8, 2024-4-29 11:15 PM , Processed in 0.010949 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表