This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译器/TMS320C6657:删除未定义的符号运算符

Guru**** 3040200 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/891231/compiler-tms320c6657-undefined-symbol-operator-delete

器件型号:TMS320C6657

工具/软件:TI C/C++编译器

您好!

我有一个项目(CCSv9.0.1,编译器8.3.2)与一些库链接,链接器不满意:

未定义                             的首次引用                                                                     
 符号                                         

运算符删除(void *、unsigned int) MyLib.lib

分析库代码没有给我线索(滥用面向对象的编程;-)),所以我尝试在库上调用 nm6x:nm6x.exe -u -l MyLib.lib

但输出中没有提到未定义的符号删除

[0]    |0x0000|0|LOLL |NONE |DFLT |UNDEF |
[542]  |0x00000000|0|glob|无|HIDn |UNDEF |_Z23defaultAssertDbgHandlerPKcjS0_S0_
[588]  |0x00000000|0|glob|无|HIDn |UNDEF |_Z24 defaultAssertWarnHandlerPKcjS0_S0_
[545]  |0x00000000|0|globb |none |HIDn |UNDEF |_Z25 defaultAssertFatalHandlerPKcjS0_S0_
[560]  |0x00000000|0|globb |none |HIDn |UNDEF |_ZN19OE_C_EvtServerProxy10InitializeEv
[580]  |0x00000000|0|glob|无|HIDn |UNDEF |_ZN19OE_C_EvtServerProxy10s_InstanceE
[557]  |0x00000000|0|globb |none |HIDn |UNDEF |_ZN28OE_C_MemoryAllocator_DynamicC1Ev
[570]  |0x00000000|0|globb |无| HIDn | UNDEF |_ZN28OE_C_MemoryAllocator_DynamicD1Ev
[558]  |0x00000000|0|glob|无|HIDn |UNDEF |_ZTVN10_cxxabiv117__class_type_infOE
[582]  |0x00000000|0|glob|无|HIDn |UNDEF |_ZdlPvj
[559]  |0x00000000|0|glob|无|HIDn |UNDEF |_cxa_atexit
[579]  |0x00000000|0|glob|无|HIDn |UNDEF |_cxa_guar_acquire
[566]  |0x0000|0|glob|无|HIDn |UNDEF |_cxa_guare_release
[584]  |0x00000000|0|glob|无|HIDn |UNDEF |_DSO_Handle
[0]    |0x0000|0|LOLL |NONE |DFLT |UNDEF |

是否有人可以帮助我找到这种所谓的未定义删除?

此致、

David

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    就是这个...

    [引用用户="David Pardessus"[582]  |0x0000|0|globb |none |HIDn |UNDEF |_ZdlPvj[/引号]

    我知道、清除为泥浆。  使用还原器 dem6x 来查看它。  像这样的东西...

    % nm6x -u -l MyLib.lib | dem6x -q --abi=eabi
    [0] |0x00000000|0|locl |none |DFLT |UNDEF |
    [542]|0x00000000|0|globb |无|HIDn |UNDEF |默认值 AssertDbgHandler (const char *、unsigned int、const char *、
    unsigned const char *)[588]|0x0000545|n|globh |无|defaultHandler | HIDt、
    cont char *、unsigned const char *[unsigned const char *、undtconst char、unsigned const char *、unsigned const char const_
    
    
    
    ~
    虚拟 char *)[560]|0x00000000|0|globb |none |HIDn |UNDEF |OE_EVtServerProxy::Initialize ()[580]|0x00000000|0|glob|无|HIDn |UNDEF MemoryOE_C_EVEREFProxy::::[558]|0x0000|ENDO_ENDOR |ENCE_ENABLE|END|无|END|ENDOR |ENDOR |ENCE_UNGEL | ENMOUNGE_REF_END| END| END| END| END| END| END| END| END| END| ENO_NOR |0|END| END| ENO_ENO_END| END| END| END| END| END| END| END| END| ENO_NOR | END| END| END| ENO_NOR | END| END| END| END| END| END| END| END| END| ENO_NOR
    
    [559]|0x00000000|0|globb |none |HIDn |UNDEF |_cxa_atexit
    [579]|0x00000000|0|HIDb |none |HIDn |UNDEF |_cxa_guar_acquire
    [566]|0x00000000|0|glob|无|UNDEF |none |UNDEF |_cxa_guard |0x0000|undle_undle|none |undle|undle|none |undle|0|undle_undle|undle_undle_undle_undle|none |[0|undle_undle_undle
    
    |0x00000000|0|LOLL |无|DFLT | UNDEF | 

    如果您检查由链接器命名的目标文件的汇编代码、请搜索 _ZdlPvj。

    谢谢、此致、

    乔治

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢还原者!

    此致、

    David