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/TMDX570LC43HDK: Referenced library project linker problem

Part Number: TMDX570LC43HDK

Tool/software: Code Composer Studio

Hy,

I'm trying to reference library TEST_LIB from project TEST_LIB_MAIN_REFLIB,

concerning this I've the following settings:

and also:

...

and

but still I've the error:

 undefined first referenced
  symbol       in file     
 --------- ----------------
 addition  ./main.obj      

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "TEST_LIB_MAIN_REFLIB.out" not built

the 2 projects ara attached in the zip,

could you figure out what's the problem?

Thanks

AntonioTest_liBReference.zip

  • I think you meant to attach some screenshots but they did not come through. Could you please resend them?

  • I looked at your projects, and although you have TEST_LIB added as a dependent project in TEST_LIB_MAIN_REFLIB, you don't have the TEST_LIB.lib file listed in the --library option of the main project (under Build->Linker->File Search Path) . Both of these are required. Simply listing a project as a dependency alone is not sufficient for it to automatically link the library generated by it.

    Please add the library name to the --library option, and its path to the --search_path option and that should fix the error.

  • thanks for your answer, it works, but for me at this point is absolutely not clean the meaning of signal to CCS that TEST?LIB is a dependent project, I directly specify which are the library to use, from this point of view java is really simpler.
    Antonio
  • Etantonio said:
    but for me at this point is absolutely not clean the meaning of signal to CCS that TEST?LIB is a dependent project

    When you specify a project as dependent on another project, then whenever you build the main project, it will first build the referenced library project. So any code changes that may have happened in the library project since previous build will be picked up as it will be rebuilt.

    If you only link in the library to the main project and don't specify the dependency, then any changes to the library project will not be picked up unless a manual build of the library project is initiated first prior to the main project build. Adding it as a dependency lets CCS take care of this for you.

    More info here: http://software-dl.ti.com/ccs/esd/documents/users_guide/sdto_ccs_build-handbook.html#project-dependencies

  • thanks, now it is all clear