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.

Compiler flag in file path when linking

I am using compiler 7.3.1 and ran into the following errors when linking:

<Linking>

error: cannot find file "-l"

error: cannot find file "-lC:\Daves_DSP_Main\5900\Libs\NDK\lib\NETTOOL.LIB"

error: cannot find file

"-lC:\Daves_DSP_Main\5900\LIBS\Diagnostics\Release\Diagnostics.lib"

 

The paths are set in the project settings, and are correct.  I also checked that the files exist where they should be.  I don't understand why it is looking for file "-l" or adding -l to the beginning of the file path.

 

Thanks for any help you can provide, I have been stuck on this for several days.

  • Hi David,

    what CCS version are you using? What OS?   Do you see the path correctly as per this wiki in the file search path?

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Best Regards,
    Lisa

  • I am running CCS 5.1 (although I tried to update and it had issues, so now I am trying to work with 5.3)

    I am running Windows 7 Enterprise 32 bit.

     

    I inherited this from someone else before they had it fully running.  So in the file search path I see paths like:

    "${workspace_loc:/${ProjName}/NETTOOL.LIB}"

    But I can't find where workspace_loc and ProjName are defined to ensure they are looking in the correct location. However I redid the path so it was absolute and still had the issue.  It appears that the paths are correct.

  • Hi David,

    before going down the installation path ... was this an imported v4 project?  Have you tried a fresh v5.3 install? 

    Best Regards,

    Lisa

  • This was a project originally done in 3.3 that I am now running in 5.3. I tried a fresh install of 5.3 and still see the issue.

     

  • Hi David,

    how have you imported?   One thing we spotted from our end is this seems to be almost as if it is a mixture of old and new style variables.  Can you confirm you used the legacy import?  Did you go through the wiki I sent and double check your path/include variables?

    Best Regards,
    Lisa

  • I did not do the original import, however I believe it was done as a legacy import. 

    I did check the path/include variables.

     

    One other piece of information that I just found:

    I used a backup copy of the project that I had made about a month ago, and I don't see the errors.  All of the files are the same and in the same place, and I have gone through the project settings and cannot see a difference in any of the settings.

     

    Since I have a version of the project that does not have the errors, I will continue to use that version, although I would like to know what caused the other errors.  While I loved using CC 3.3, 5.X has been very difficult to use.  Errors when I compile come and go, if I haven't changed anything, or I build successfully with a version of the compiler, ugrade it and see errors, so I go back to the original version of the compiler and the errors remain.

     

    Going back to the project that does not see these errors, I had the project building, linking and downloading successfully.  I was setting breakpoints and stepping through the code and everything was perfect.  I left the project as it was, went home and came in this morning, and I am seeing an error that it cannot find a file, but no files were changed, and I can't find where it tells me what file it can't find. 

     

    I appreciate the help you have been giving me, with this and other issues.

     

    David

     

  • Hi David,

    no worries, that's what we are here for.   Sorry to hear about the troubles.   It is extremely difficult to pin point an exact cause of the behaviour you see.  It could be something as simple as file corruption or it could be that, even if there is no inidication, something got confused with the installations/updates.

    All the best with development and we are here when needed.

    Best Regards,
    Lisa

  • I have discovered that if I update the compiler from 7.3.1 to 7.4.1 I go from no build issues to seeing the following errors:

    Description Resource Path Location Type
    unresolved symbol _NC_SystemOpen, first referenced in ./MainClient.obj 5900 EM main    C/C++ Problem
    unresolved symbol _NC_SystemClose, first referenced in ./MainClient.obj 5900 EM main    C/C++ Problem
    unresolved symbol _llTimerGetStartTime, first referenced in C:\Users\sabolda\Desktop\NG 5900 EM main    C/C++ Problem
    unresolved symbol _NDKregDelayConnectCB, first referenced in ./MainClient.obj 5900 EM main    C/C++ Problem
    unresolved symbol _llTimerTick, first referenced in ./5600P1cfg.obj 5900 EM main    C/C++ Problem
    unresolved symbol _llTimerGetTime, first referenced in C:\Users\sabolda\Desktop\NG 5900 EM main    C/C++ Problem
    #10010 errors encountered during linking; "C:/Users/sabolda/Desktop/NG 5900 EM main    C/C++ Problem
    <a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain 5900 EM main    C/C++ Problem
    #10008-D cannot find file "-lC:\Users\sabolda\Desktop\NG EM Controller 5900 EM main    C/C++ Problem
    unresolved symbol _NC_NetStart, first referenced in ./MainClient.obj 5900 EM main    C/C++ Problem
    unresolved symbol _NC_NetStop, first referenced in C:\Users\sabolda\Desktop\NG 5900 EM main    C/C++ Problem

     

    Again, it is adding a flag to the file path -#10008-D cannot find file "-lC:\Users\sabolda\Desktop\NG EM Controller 5900 EM main    C/C++ Problem

    I suppose I can stick with 7.3.1, but I don't understand why the update would cause the issue.  It only causes an issue with some of the libraries I am building in my project, others I can update and it did not cause an error.