Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhangsen1860 opened this issue Sep 7, 2021 · 1 comment
Open

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

zhangsen1860 opened this issue Sep 7, 2021 · 1 comment

Comments

@zhangsen1860
Copy link

结构体中存在枚举类型,生成代码运行后,存在如下问题,
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是一个枚举类型, 请问这种情况有解决方案吗

@armink
Copy link
Owner

armink commented Sep 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants