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/MSP432P401R: Energia project: arm-none-eabi/bin/ld: cannot find -lmsp432r_MSP-EXP432P410R_PubSubClient

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hello, ive been having issues with this energia library, before it did work but i removed a dependency that wasnt actually needed (it was commented out but CC brought it in and made it a dependency anyway) and for some reason this file cant be linked. I really dont understand why it cant seem to see this one as that is the name of the project exactly. Any idea how i could fix this issue?

I am new to using linkers and code composer in general and have been having a bit of a hard time with this area of stuff. Any help at all would be extremely welcomed. Even links to some form of guide to do with the compiler and linker settings would be helpful.

  • Hello,

    The imported project likely has a dependency on a generated library from another project. When I import a related Energia project, several dependent subprojects are also imported, including "msp432r_MSP-EXP432P401R_PubSubClient". When building the main imported project, it should build the dependent subprojects first. The missing library is the output of the "msp432r_MSP-EXP432P401R_PubSubClient" subproject. Check to see if the "msp432r_MSP-EXP432P401R_PubSubClient" project is imported in your workspace and if the build for it was successful.

    Connor Fitzsimmons said:
    I am new to using linkers and code composer in general and have been having a bit of a hard time with this area of stuff. Any help at all would be extremely welcomed. Even links to some form of guide to do with the compiler and linker settings would be helpful.

    I suggest starting with the CCS User's Guide, especially chapter 6. Since you are likely using the GCC compiler, please see the below link for the User's Guide for those:

    https://gcc.gnu.org/onlinedocs/

    Thnaks

    ki

  • I will read those guides in a bit. That library is compiling properly it looks like, though it could be that it isnt compiling as it seems another library is getting an error but it doesnt say what the error is. Could it be that the pubsub library isnt being compiled at all because another library isnt compiling?

  • Can you check the project dependencies and see if the msp432r_MSP-EXP432P401R_PubSubClient project is listed?

    Also, where did you import your main project from? Is it a standard Energia example? 

  • Hello, yes i did have all of the project dependencies correct. For some reason when i started it today the error was different, it now pointed towards an error in a sub project and fixing that allowed compilation to occur correctly.

    Thanks for your help!