I am getting errors when I try to run my executable together with my shared library on 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.

According to my Google searches it could be remedied by removing the -g option during compilation and linking. But I would rather keep the debugging info there. Is it possible? I have even tried to add -lg, as some of my search results have suggested. It did not help either.

UPDATE

It turns adding explicit -lg does help.

有帮助吗?

解决方案

It turns adding explicit -lg does help.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top