“/usr/local/lib/libosipparser2.so.7: could not read symbols: Invalid operation” 异常解决

编译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版本。。

posted @ 2019-12-16 15:42  冰柠檬的夏天  阅读(732)  评论(0编辑  收藏  举报