首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“未定义的对‘pantheios_log_3_no_test’的引用”

“未定义的对‘pantheios_log_3_no_test’的引用”
EN

Stack Overflow用户
提问于 2013-03-10 12:01:03
回答 1查看 120关注 0票数 0

在使用gcc4.6连接Linux上的Pantheios时,我遇到了问题,有以下错误:

代码语言:javascript
复制
In function `pantheios::internal::log_dispatch_3(int, unsigned int, char const*, unsigned int, char const*, unsigned int, char const*)':
sig_writing_sink.cpp:(.text._ZN9pantheios8internal14log_dispatch_3EijPKcjS2_jS2_[pantheios::internal::log_dispatch_3(int, unsigned int, char const*, unsigned int, char const*, unsigned int, char const*)]+0x6d): undefined reference to `pantheios_log_3_no_test'
collect2: ld returned 1 exit status

我与以下方面有联系:

  • libpantheios.1.core.gcc46.mt.a
  • libpantheios.1.fe.simple.gcc46.mt.a
  • libpantheios.1.be.fprintf.gcc46.mt.a
  • libpantheios.1.bec.fprintf.gcc46.mt.a
  • libpantheios.1.util.gcc46.mt.a
  • libpantheios.1.appl.gcc46.mt.a
  • libpantheios.1.core.gcc46.mt.a

pantheios_log_3_no_test在哪里?

我遗漏了什么?

EN

回答 1

Stack Overflow用户

发布于 2013-03-12 07:29:16

结果发现,在gcc中,符号只向前链接,所以给定库中的相依符号只能从链接列表中跟随它的lib中解析。有关更多细节,请参见here

通过将其他静态链接库移动到Pantheios之前,链接器成功了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15321970

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档