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.
Tool/software: Code Composer Studio
Hello,
I am working on a project in CCS and was trying to clean it up a little so I made a new source and header file to contain some of my wrapper functions and now my project cannot build successfully. this is not the first source/header file I have added to this project, and everything worked fine with that one. When debugging I tried to follow that codes format as close as possible but that was to no avail. I have attached a screenshot of the error message. I am unfortunately using a header file for my main however I have header guarded it as well as all other header files I have created.
Further, I tried to revert everything to how it was without the additional header and source file and it still wouldn't build.
Any help would be greatly appreciated!
Hello,
For the first error, you have multiple definitions of 'main' in your project that are conflicting with each other. One in <project folder>/main.c and one in <project folder>/driverlib/MSP430FR5xx_6xx/main.c.
For the second error, please see:
Basically, you need to include the source or library file that defines "RDslave" to your project.
Thanks
ki
Second problem was interestingly a result of the first somehow, as RDslave was a function that I programmed and moved from my main file to my new .c / .h file, which I was trying to use to clean things up, I say it was a result of the first as when I solved the first the second went away as well. My first problem was in fact solved by deleting that other file in the /driverlib/... directory.
I am a little confused how that one got there and started causing an issue however as the only actions i took between my program working and not working was adding those two new files in the project. If I was unclear in the first paragraph my project now works, however, I am still curious on how the main issue came about, if anyone has any thoughts please let me know.
Best,
Silas