设为首页 加入收藏

TOP

Unix网络编程(卷二)源码编译报错解决(二)
2014-11-24 13:43:26 来源: 作者: 【 】 浏览:7
Tags:Unix 网络编程 卷二 源码 编译 解决
ined reference to `mq_unlink'


./libunpipc.a(wrapunix.o): In function `Mq_close':


wrapunix.c:(.text+0xd3d): undefined reference to `mq_close'


./libunpipc.a(wrapunix.o): In function `Mq_open':


wrapunix.c:(.text+0xd79): undefined reference to `__mq_open_2'


wrapunix.c:(.text+0xd9e): undefined reference to `mq_open'


collect2: ld returned 1 exit status


解决办法:gcc 添加-lrt命令选项(具体查看man mq_open)


3、找不到GetOpt:


/tmp/ccv1UEy3.o: In function `main':


mqcreate1.c:(.text+0x3a): undefined reference to `GetOpt'


collect2: ld returned 1 exit status


直接把程序改了getopt,没关系。


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C++中<array>的使用 下一篇C++预处理

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·哈希表 - 菜鸟教程 (2025-12-24 20:18:55)
·MySQL存储引擎InnoDB (2025-12-24 20:18:53)
·索引堆及其优化 - 菜 (2025-12-24 20:18:50)
·Shell 中各种括号的 (2025-12-24 19:50:39)
·Shell 变量 - 菜鸟教 (2025-12-24 19:50:37)