求助fluffos 3.0-alpha6.3编译出错问题
在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
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 这个我已经回答了 是gcc版本太低造成的 至少要4.6以上
页:
[1]