【问题标题】:creating an .so file with an so file and some other .o files使用 so 文件和其他一些 .o 文件创建 .so 文件
【发布时间】:2013-04-03 06:52:59
【问题描述】:

我正在尝试从一些 .so 文件和一些 .o 文件创建一个动态库 (.so)。 最终的 so 文件正在生成,但是当我使用那个 .so 文件时,一些库没有被链接。

问题是一些 .so 文件正在链接,但有些文件没有链接。没有链接的是 boost (.so) 文件。

libboost_chrono.so.1.50.0: cannot open shared object file: No such file or directory

如何解决这个问题?

【问题讨论】:

    标签: c++ boost linker shared-libraries


    【解决方案1】:

    只需将this 解压到与其他库相同的目录即可。

    【讨论】:

    • 我给出了整个库列表的路径。在该路径中,整个库列表都在那里。但是,它仍然没有链接。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-03
    相关资源
    最近更新 更多