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.

CCS v5.1 RC2: Symbol 'Diags_USER1' could not be resolved

I was able to port over CCS v4.2 legacy project in to CCS v5.1 RC2 and able to compile it just fine.  But when I open the main.c file, I started getting errors.  The compilation I did not show these errors. I check and all the paths are defined in the project settings.

 

Description Resource Path Location Type
Symbol 'Diags_USER1' could not be resolved DSP_Main.c /DSP_Board_v41 line 135 Semantic Error

  • Hi Enrique,

    In your project tree if you right click on the .h files, do they get resolved?  Do they show the location and file size? 

    When you imported the project, did you select "copy project into workspace"?  

    Have you double checked all include variables and paths are there?

    Please keep us informed.

    Best Regards,
    Lisa

  • Lisa TI said:

    Hi Enrique,

    In your project tree if you right click on the .h files, do they get resolved?  Do they show the location and file size? 

    I did as you asked:  I right click on the .h of "xdc/runtime/Diags.h" from the orginal import of the project,  it did not show the location or the fiile size.  

    Lisa TI said:
    When you imported the project, did you select "copy project into workspace"?  

    When you mention “When you imported the project,…”, it got me thinking on what I did.  I did not use “Project->Import Existing CCS/CCE Project” method.  Our legacy CCS v4.2 project is stored in our SVN repository.  There for, I used Eclipse SVN software tool to import the project.  I noticed the project being changed and I thought it imported the project correctly.  It seemed that was not the case.

    This time around I used another SVN tool to copy the project over from the repository and stored it in a different directory.  Then I did “import existing CCS project” of the project I just copied over.  Doing that, now I am able to resolve “Diags_USER1” . 

    Lisa TI said:
    Have you double checked all include variables and paths are there?

    The only thing I needed to add was search paths for “xdctools” in the compiler and linker.

    Lisa TI said:
    Please keep us informed.

    Best Regards,
    Lisa

    Thanks Lisa, you got me thinking and I was able to resolve the issue.

     

  • No problem at all Enrique.  Glad if I could be of any help and all the best!  Lisa