0

Linux上のPantheiosとgcc4.6のリンクで問題が発生し、次のエラーが発生します。

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ますか?
私は何が欠けていますか?

4

1 に答える 1

0

gcc では、シンボルは前方にのみリンクされるため、特定のライブラリの依存シンボルは、リンク リストでそれに続くライブラリからのみ解決されます。詳細については、こちらを参照してください。
他の静的にリンクされたライブラリをPantheios の前に移動することで、リンカーは成功しました。

于 2013-03-12T07:29:16.960 に答える