设为首页 加入收藏

TOP

Linux下编译cppunit1.12.1出现'undefined reference to `dlclose''的解决方法
2015-02-02 23:15:33 来源: 作者: 【 】 浏览:22
Tags:Linux 编译 cppunit1.12.1 出现 ' undefined reference dlclose' 解决 方法

之前没有用过CPPUnit,可是现在的公司在用。为了准备TDD代码道场,今天下载了一份。可刚编译就遇到了问题,查了一下,是原代码包中的配置项错了,现象如下:


运行 ./configure 和make以后,出现错误:


undefined reference to `dlclose'?
undefined reference to `dlopen'?
undefined reference to `dlsym'?


解决的方法是在 ./configure 后面加上参数LDFLAS=‘-ldl’:


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇can't open '/dev/misc/r.. 下一篇Android UI 优化 使用<include..

评论

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