解决netbean7.1.2在Ubuntu下面编译程序报undefined reference to问题

17 篇文章 0 订阅
本来在centos 5.8 64位版本下编译,原来程序编译链接通过,后新加一个模块,用到的一个链接库为32位,链接不成功,所以将程序转至ubuntu11.10 32位版本编译链接,以前能编译链接成功的部分老报undefined reference to ‘xxx',后发现在netbean项目设置中,我在linker选项的Compilation Line->addition options,添加了一系列链接库目标-ltmControlClient -llog4cplus -leXosip2 -losip2 -losipparser2 -ljthread -lgcov -lpthread -lrt,现在改为在Libraries里面添加一个add option...添加-ltmControlClient -llog4cplus -leXosip2 -losip2 -losipparser2 -ljthread -lgcov -lpthread -lrt即可
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值