struct2json icon indicating copy to clipboard operation
struct2json copied to clipboard

结构体中存在枚举类型如何处理

Open zhangsen1860 opened this issue 4 years ago • 1 comments

结构体中存在枚举类型,生成代码运行后,存在如下问题, my_struct_2_json.c:(.text+0xad9): undefined reference to struct_to_json_E_DATA_TYPE' /tmp/cc600xmd.o: In function json_to_struct_app_data': my_struct_2_json.c:(.text+0xbe4): undefined reference to json_to_struct_E_DATA_TYPE' /tmp/cc600xmd.o: In function struct_to_json_sync_data': my_struct_2_json.c:(.text+0xc97): undefined reference to struct_to_json_E_DATA_TYPE' /tmp/cc600xmd.o: In function json_to_struct_sync_data': my_struct_2_json.c:(.text+0xda2): undefined reference to `json_to_struct_E_DATA_TYPE' E_DATA_TYPE是一个枚举类型, 请问这种情况有解决方案吗

zhangsen1860 avatar Sep 07 '21 11:09 zhangsen1860

枚举不太好处理的,都统一当整形吧

armink avatar Sep 07 '21 12:09 armink