Hi,
I'm working in a project with multiples c files and I have a file called common.h (a common header file) and a file called common.c for functions.
I have some functions declared in common.c that are used by all the files in the project. Every file have the lines #include "common.c" and #include "common.h" on the beginning.
When I compile with gcc under Linux I get the following error for each function in common.c:
Code:
common.c:(.text+0x0): multiple definition of `<function name>'
/tmp/ccgDKaJP.o:triviald.c:(.text+0x0): first defined here
Is there any specific way to define functions in order to get rid of this error?
Which file would you declare a common typedef for all the files in my project (common.h and common.c)?

Thank you!