문제

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