Good afternoon.
I am a hardware guy who is learning code. Can you please help me identify a problem...Using CCS and an MSP430 part. I have a rc.c (contains main) and a functions.c....I have a .h file which contains some #defines, a few const unsigned int and declarations. I also have a wrapper around all code within this file #ifndef RC_H_, #define RC_H_, #endif. Finally I have #include of the header file in both main and functions.

I am continually getting the error during compile times showing
#10056 symbol x redefined: first defined in "./functions.obj"; redefined in "./rc.obj"

Any help would be appreciated....Do you have to compile files in a certain order? Do I need to do something specific in CCS? I have found that if I exclude functions.c from the build and copy all the definitions into the header file all compiles and works...

Thanks