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 Static Library/ CCS Executable

Other Parts Discussed in Thread: SIMPLICITI

Hello,

I am using CCS v5.

I have created a CCS static library in order to use it in an executable project I have created. I began by adding the .lib found in the Release folder of the static library project. What else do I need to add in order for the executable to find the files in the library? Any includes? Right now I am getting a fatal error:  line 45: fatal error #5: could not open source file. I tried including the workspace project and, also, including the path of where the library project is but I began to get errors in the library that had already been built saying it could not find the files. :S Please let me know of any suggestions.

Thank you,

Michelle

  • Hi Michelle,

    have you seen the following wiki on include paths and options.  This includes adding libraries, which you may or may also want to add as a dependency.

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

    Please keep us informed whether this helps.  With that type of error, you could also check for permissions issues or antivirus interference.

    Best Regards,

    Lisa

  • Hi Lisa,

    Thank you for your reply.

    I tried adding it as a dependency as the link indicated. I am able to add the project in the Dependency section in the Build tab. Nevertheless, when I try to choose the project in the Project Reference tab it seems like the option is not saved because when I go again to see the properties the project is unchecked. I am still getting the source not found message and its probably because the dependency is not being resolved completely since the project remains unchecked in the above mentioned tab. Any suggestions?

    Thanks,

    Michelle

  • Hi Michelle,

    two things ... please make sure that not only the dependencies but the path and build variables and include paths are also all present and correct.  I know SimpliciTI tends to use a path variable DEV_ROOT which should always be checked for example.  I am wondering, if for some reason, you may need to add the dependency in the second place it can be added as well.  If you select on the bottom left to show advanced options you should see another area where you can add a dependency.  

    Please give these things a try and keep us informed. 

    Best Regards,
    Lisa

  • Hello Lisa,

    I've included the paths and build variables in both the build and linker tabs. I have also added the other project dependency of the library I have created on the new project I am trying to build. The problem I am getting now is that when I'm trying to build the new project I get an error in the library already built because it says it cannot find a file: "fatal error #5: could not open source file". I am getting this message even though the lib has already been built and all the include paths are there. :S

    Thank you,

    Michelle

  • HI Michelle,

    a couple things to check next

    - the message says "could not open" ... this is potentially a permissions issue or antivirus interference

    - what library exactly are you trying to use?  Is it from an example?  Does the example build without error?

    Best Regards,
    Lisa

  • Hi Lisa,

    I was able to build the project. I was wrongly placing some include paths in the Compile and Link tab. I did not need to use any dependencies from the other project. Thank you so much for your help.

    Regards,

    Michelle

  • Hi Michelle,

    great, glad to hear and thanks for the update.  All the best with development.

    Best Regards,

    Lisa