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/EK-TM4C1294XL: Symbol redefined?

Part Number: EK-TM4C1294XL

Tool/software: Code Composer Studio

I have a project containing a main.c and a sub module named Codes.c.

Codes.c contains an enormous amount of constants, one variable and one function,

void BuildCode(int size) {
----
}

When originally I had BuildCode placed in main.c everything worked perfectly.

Now with the function placed along with the data it is to process (in Codes.c) I get a symbol "BuildCode" redefined error at link time.

Apparently the function now is defined in both main.c and Codes.c. The actual code is only in Codes.c!

In the beginning of main.c I have:

#include "Codes.c"

What am I doing wrong?

This may be a trivial C code error, I may be supposed to only include .h files?

I come from Delphi (Pascal), where .h filed do not exist!)