ali-IOT cjson

发布于 2020-07-18 13:48:48

2.png
1.png
使用SCONS选择的ali-IOT编译出现阿里包的CJSON与自动选择的CJSON编译冲突
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_AddItemReferenceToArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_AddItemReferenceToObject multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_AddItemToArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_AddItemToObject multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_AddItemToObjectCS multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateBool multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateDoubleArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateFalse multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateFloatArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateIntArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateNull multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateNumber multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateObject multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateString multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateStringArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_CreateTrue multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_Delete multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_DeleteItemFromArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_DeleteItemFromObject multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_DetachItemFromArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_DetachItemFromObject multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_Duplicate multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_GetArrayItem multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_GetArraySize multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_GetErrorPtr multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_GetObjectItem multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_InsertItemInArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_Minify multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_Parse multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_ParseWithOpts multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_Print multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_PrintBuffered multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_PrintUnformatted multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_ReplaceItemInArray multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_ReplaceItemInObject multiply defined (by cjson-latest_cjson.o and cjson.o).
.buildkeilObjrt-thread.axf: Error: L6200E: Symbol cJSON_free multiply defined (by cjson_util.o and cjson.o).2.png

查看更多

关注者
0
被浏览
114
1 个回答
OJZI_8922
OJZI_8922 2020-07-18

已解决是因为添加AT-IOT dev_model器件模型例程里面有个CJSON造成的冲突。使用scons不添加这个例程就可以了。

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友