libjson-c库的使用问题备忘
/tmp/ccaITRtr.o: In function `GetValByKey‘:
/home/jack/json-c/json-demo.c:13: undefined reference to `json_object_object_get‘
/home/jack/json-c/json-demo.c:16: undefined reference to `json_object_get_type‘
/home/jack/json-c/json-demo.c:20: undefined reference to `json_object_get_string‘
/home/jack/json-c/json-demo.c:23: undefined reference to `json_object_get_int‘
/tmp/ccaITRtr.o: In function `main‘:
/home/jack/json-c/json-demo.c:39: undefined reference to `json_object_new_string‘
/home/jack/json-c/json-demo.c:41: undefined reference to `json_object_get_string‘
/home/jack/json-c/json-demo.c:43: undefined reference to `json_object_to_json_string‘
******
json-demo.c: In function ‘main’:
json-demo.c:87:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
json-demo.c:87:2: note: use option -std=c99 or -std=gnu99 to compile your code
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。