2013-07-19 20 views
0

出口我收到錯誤,當我嘗試使用我的共享庫在AIX上運行起來我的可執行文件:AIX運行時錯誤:符號__dbargs(編號191)沒有從依賴

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. 

根據我的谷歌搜索可以通過在編譯和鏈接期間刪除-g選項來彌補。但我寧願保留調試信息。可能嗎? 我甚至試圖添加 -lg,因爲我的一些搜索結果提示。它也沒有幫助。

UPDATE

原來增加明確-lg確實幫助。

+0

您是否嘗試不使用「-g」?只是爲了確定這是問題所在。 – nouney

+0

我不確定是否可以控制。我可以在組件中控制它,但不能控制'libcfOSServices.a'文件。 – wilx

+0

這個http://www.linuxmisc.com/11-unix-aix/5536d93caf16ec9c.htm解釋了一些事情。 – wilx

回答

0

它增加了明確的-lg確實有幫助。

相關問題