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.

About undefined symbol first referenced in file problem!

 

     Hello everyboby:

                 I build my project but it gennerate a error that  "_mpy32ll(int, int)       F:\\pede0809change\\pds_lib\\Debug\\pds_lib.lib  "   undefined symbol first referenced in file , but  I has beem add  " #include "IQmath_inline.h" "  into file and add libarary "IQmath_c64x+.lib" to my project .  so  I do not find where  undefined symbol "_mpy32ll"。

                            

                Thanks !

                chen an          

  • Hello chen,

    That function is part of the run-time library. Are you including the C6000 run time library for your project (rts64plus.lib)?

    Thanks

    ki

  •     Hi ki:

        I has been add rts64plus.lib to project  but generate a new error ,

                                                        

                                  So  how to solve this problem!  please help.

                                  Best regards to your !

                                chan an 

    5826.cc_build_Debug.log
    -------------------  dm6437_evm_video_st_sample.pjt - Debug  -------------------
    [Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
    <Linking>
    >>   error: symbol _c_int00 is defined multiple times: boot.obj
                (C:\\CCStudio_v3.3\\C6000\\cgtools\\lib\\rts64plus.lib) and
                boot.o64P
                (C:/CCStudio_v3.3/bios_5_31_07/packages/ti/bios/lib/bios.a64P)
    >>   error: symbol __stack is defined multiple times: boot.obj
                (C:\\CCStudio_v3.3\\C6000\\cgtools\\lib\\rts64plus.lib) and
                boot.o64P
                (C:/CCStudio_v3.3/bios_5_31_07/packages/ti/bios/lib/bios.a64P)
    >> warning: creating output section .template without SECTIONS specification
    >> warning: creating output section .sysmem without SECTIONS specification
    >> warning: creating output section .IRQ_LoadVecs without SECTIONS specification
    >> warning: creating .sysmem section with default size of 400 (hex) words.
      
                Use -heap option to change the default size.
    >>   error: errors in input - ./Debug/dm6437_evm_video_st_sample.out not built
    
    >> Compilation failure
    
    Build Complete,
      4 Errors, 4 Warnings, 0 Remarks.
    

     

  • Didn't realize you are using a BIOS project. The issue is that some symbols are defined twice. Are you trying to build some example or is this a custom project?

  •         Hi Ki:

                 My project is a custom project, I used bios is "bios_5_31_07" ,  dependent project is pds_lib.pjt  , ative project is dm6437_evm_video_st_sample.pjt, 

                                                     

                               I add run time libarary that generate a new error

    .

             if I don't add runtime libarary ,it generate other error:

                                                 

                      so , how to do this!

                      Best Regards!

                        chan an

  •     Hi, I'm a rooky. I faced the similar problem and searched this. Finally I made it up. I think it may do some benefit if you put enough source files related into your project. Sincerely hope you can get throuth it! Great bless!

  •       thanks!!!!!!!

          Chen an