编译c代码报错如下
/usr/bin/ld: /tmp/ccl8nBND.o: undefined reference to symbol 'osip_message_get_body'
/usr/bin/ld: note: 'osip_message_get_body' is defined in DSO /usr/local/lib/libosipparser2.so.7 so try adding it to the linker command line
/usr/local/lib/libosipparser2.so.7: could not read symbols: Invalid operation
解决:
编译命令加上 -losipparser2
代码是博客中的代码。
eXosip2-3.6在ubuntu16上安装不上,尽管gcc已经降级到了4.7版本。在ubuntu12上可行,自带gcc4.6版本。。