/usr/bin/ld: /tmp/ccNdFaSA.o: in function `main':
ubus_server.c:(.text+0x1f): undefined reference to `blobmsg_add_object'
collect2: error: ld returned 1 exit status
但是nm看链接库的符号表有这个函数,为什么呢
# nm libblobmsg_json.so | grep 'blobmsg_add_object'
0000000000001b73 T blobmsg_add_object
确认so是没有问题的,因为如果重命名so后,编译就会提示
/usr/bin/ld: cannot find -lblobmsg_json
collect2: error: ld returned 1 exit status
--
修改:b0207191 FROM 218.66.91.*
FROM 218.66.91.*