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/CODECOMPOSER: Unable to access functions defined in one project in another, linked through project dependencies (unresolved symbol)

Part Number: CODECOMPOSER

Tool/software: Code Composer Studio

Hi,

I had created two projects (imported from CCS examples) in CCS as mentioned in below screenshot. Both these projects are working as expected when run separately.

When I create a project dependency between the two projects and try to call a function defined in one project from another, I receive unresolved symbol error (shown below).

Kindly let me know about the process to call functions between projects. I have taken care of include folders & libraries and also created separate header files for the functions. However, looks like the project is not able to recognise the other while linking (Though I can go to the source function by selecting open declaration).

Regards,

Navin

  • Navin Babu S said:
    When I create a project dependency between the two projects and try to call a function defined in one project from another, I receive unresolved symbol error (shown below).

    That is not the intent of project dependencies. The dependent project is typically a static library, and the library generated upon building the dependent project can be linked into the main project. Then calls made from the main application to functions defined in the library will be resolved.
    http://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html#project-dependencies

    In your case, you would need to add the source file that defines the BMSCellVoltageMeasure function into the project that requires it. Or you could collect a group of source files into another project, create a static library out of it and then link the library into the main project.