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.

unresolved symbol _EZDSP5535_I2C_write, first referenced in ./record.obj

hii,

i tried to write my own program using the functions given in the test programs for c5535 eZdsp kit.

i get an error saying that the " unresolved symbol _EZDSP5535_I2C_write, first referenced in ./record.obj "

i get this error for all the functions used in the example programs.

Pls tell me how to solve this error and use the functions defined in the example programs.

Thanks and regards 

Srivatsa

  • Hi Srivatsa,
    That error message is documented/explained here:
    processors.wiki.ti.com/.../10234

    Thanks
    ki
  • Hii Ki-Soo Lee,

    i have attached the necessary library files where the functions are declared ,but i m still getting the same error.

    please tell me how to solve it.

    thanks and regards

    Srivatsa

  • Hi Srivatsa,

    1)If you have added header files by using the below option : Right clicked on the 'Project Name ' in Workspace ---> Under the list 'Add files' , just remove the header files by using the delete option.

    2)Then Right click on Project --> Go to Properties --> CCS Build --> ARM Complier ---> Include Options ---> Along with the header path you have already included, just include the File Path of your current working project.

    If you already added option 2, then just leave it. Only follow Option 1. Then your error will be resolved.

    This error is because CCS couldn't understand the declaration part due to the inclusion of header files at two places.




    Regards,
    Sudha
  • vatsa sri said:
    i get an error saying that the " unresolved symbol _EZDSP5535_I2C_write, first referenced in ./record.obj "

    This is a linker error where the linker cannot find the object that defines this symbol.

    "EZDSP5535_I2C_write" is part of the "ezdsp5535bsl.lib". Make sure this library is being included in your project. See example below:

    Thanks

    ki

  • dear ki,

    i tried to add all the files as shown by u in the screenshot, but i couldn't find the "${PROJECT ROOT}/../../lib".

    can u please tell me how to add it.

    i am using ccs v4.0 and i have posted the screen shot of my properties page.

    Thanks and regards

    Srivatsa

  • Assuming that the lib is in the path you specified above, then it looks like you have added it correctly.