c - AIX 运行时错误 : Symbol __dbargs (number 191) is not exported from dependent

标签 c linker aix xlc

当我尝试在 AIX 上运行我的可执行文件和共享库时遇到错误:

    Symbol __dbargs (number 191) is not exported from dependent
      module /opt/CA/SharedComponents/lib/libcfOSServices.a.
    Symbol __dbsubc (number 192) is not exported from dependent
      module /opt/CA/SharedComponents/lib/libcfOSServices.a.
    Symbol __dbsubg (number 193) is not exported from dependent
      module /opt/CA/SharedComponents/lib/libcfOSServices.a.
    Symbol __dbsubn (number 194) is not exported from dependent
      module /opt/CA/SharedComponents/lib/libcfOSServices.a.

根据我的 Google 搜索,可以通过在编译和链接期间删除 -g 选项来解决这个问题。但我宁愿将调试信息保留在那里。是否可以? 我什至尝试添加 -lg,正如我的一些搜索结果所建议的那样。这也没有帮助。

更新

事实证明,添加显式 -lg 确实有帮助。

最佳答案

事实证明,添加显式 -lg 确实有帮助。

关于c - AIX 运行时错误 : Symbol __dbargs (number 191) is not exported from dependent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17741423/

相关文章:

ios - iOS 调整中的链接跳板

c++ - 我是否需要在显式加载的共享库之间隐式链接以进行交互?

c - IAR 为自定义数据定义内存区域

c - 此输入如何导致输出 '**4 *2' ?

c - 如何将静态数组转换为动态数组?

java - 如何收集目录列表以及每个文件的 CRC 校验和?

linux - 在 AIX 6.1 中运行 SUDO 时,配置文件没有被执行?

c - 编译链接到AIX上的静态库的C应用程序

c - 当存在目标变量时,在 strcat、strcopy 等(等)中返回 char* 的目的是什么?

c++ - 在 ONC RPC 中,从两个注册了不同程序的线程调用 svc_run() 是否有效?