How do I create a project in CCS 4 for to create a library?
it seems to want to link and create an .out file
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.
How do I create a project in CCS 4 for to create a library?
it seems to want to link and create an .out file
You have to specify it when you setup the project, it doesn't look like you can change from an executable to a library without creating a new project.
When you go through the selection menus to create a new project select
Output type: static library
instead of the default of Executable
These are the menus where you select which exact processor you are using.
I have set up a project to build a library, and have verified that the .lib is correctly created. However, I can't figure out how to get that .lib to link with other code to create a .out file. I've set the static library project as a project reference of the .out project but unless I put in an explicit filename, I can't get the .out file to correctly link the library.
What do I need to do to make this happen?
In the Build properties, under the Linker there is an option about "File Search Path" (I am describing a C2000 project, but there is something very similar for Stellaris & 430). Bring up this "File Search Path" linker menu and it lets you specify which libraries to link to your project and where to find these libraries.
I think using this method, I will have to specify each .lib individually for the Debug configuration and then again for Release. Since I already specified a set of project references, shouldn't CCS be able to grab the .lib files from the directories in which they were created?