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.

undefined symbol referencing errors

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I have this kind of problem too. But I cannot find out the solution as you explained... What do I have to do to solve this problem ??

Exactly mine :

undefined                        first referenced
 symbol                              in file
---------                        ----------------
_blinkLED                        C:\\Programs\\CCStudio_v3.3\\dsk6455_v2\\boards\\dsk6455_v2\\examples\\dsk_app\\Debug\\dsk_appcfg.obj
_load                            C:\\Programs\\CCStudio_v3.3\\dsk6455_v2\\boards\\dsk6455_v2\\examples\\dsk_app\\Debug\\dsk_appcfg.obj
>>   error: symbol referencing errors - './Debug/dsk_app.out' not built

 

 

Thanks in advance

Maxime

  • The same answer applies here:

    http://e2e.ti.com/support/development_tools/compiler/f/343/p/47525/168018.aspx#168018

    The linker can not find the functions in your code, and it can not find the functions in any library included in the project.

    You need to figure out where these functions are and include them in your project.

  • Maxime,

    I have the same error.  Did you find the reason why?

     

    Carlos

  • Hi Mariana,

     

    I'm programming an application for motion control motor, and when I compile the files I get the next messages:

     

    <Linking>

    undefined                        first referenced
     symbol                              in file
    ---------                              ----------------
    _F281X_EV2_PWM_Init                    C:\tidcs\DMC\c28\7-04-2010\PMSM_3_2\PMSM3_2_281x_V322\v32x\sys\PMSM3_2_281x\cIQmath\obj\pmsm3_2.obj
    _F281X_EV2_PWM_Update            C:\tidcs\DMC\c28\7-04-2010\PMSM_3_2\PMSM3_2_281x_V322\v32x\sys\PMSM3_2_281x\cIQmath\obj\pmsm3_2.obj
    >>   error: symbol referencing errors - '../build/pmsm3_2.out' not built

    >> Compilation failure

    Build Complete,
      2 Errors, 0 Warnings, 0 Remarks.

    I've created the source file corresponding to this functions(_F281X_EV2_PWM_Init and _F281X_EV2_PWM_Update) in the same directory I've included another files, and the header file corresponding to the initialization of this functions (I have an structure inside) is in a directory where I have another functions included in the project, too.

    In fact, I can see in my CCs row directory, that the header file is included. Why the error still appearing? Have to include another file or something else?

    When I see the files ".obj" created in compiling process of the project, I can't see the ones (".obj") corresponding to this functions, I think this is due to the error produced.

    Hope you can help me,

    Best Regards.

    Emil Zatopec

  • Emil,

    The error is telling you that the file pmsm3_2 is referencing the symbols _F281X_EV2_PWM_Init and _F281X_EV2_PWM_Update but the linker cannot find the definitions for these symbols. If these are defined in another source file that is included in the project, you need to check into why the .obj files for that source file is not being created. Is that source file being built as part of the build process correctly? You can take a look at the build output on the console and see the build command for all source files and corresponding check that all .obj files are being generated properly.

  • Aaron Rangel said:

    I've created the source file corresponding to this functions(_F281X_EV2_PWM_Init and _F281X_EV2_PWM_Update)

    Are those the exact names as they appear in the C source?  They should have the first underscore removed.  In COFF, C identifiers are transformed by the compiler by adding an underscore to the beginning.  This is a form of name mangling.  The error message from the linker does not remove the underscore, so you are seeing the mangled name.  A different kind of name mangling is done for C++ code.

  • Hi Aarti,

    Thanks for answering me, but I've a question about this.

    I've take a look to the build process in the console and I don't know if that file is being generated looking in the console messages. I know the file is not being generated because I see in the directory of .obj files that it not appears, and I still don't know the reason.

    In fact, I don't know the way to see if there is any file .obj generated in the bulid process or another file that is not in ".c" extension. I only see the ".c" files in the build process and the errors associates to this files extensions.

    Could you tell me the way for checking this or solving that error?

    Thanks,

    Best Regards

    Emil zatopec