I often need to use a var.h file for some global variables for interrupt driven code. I am just starting to write large enough programs to where typedef enums, structures and unions will help the code be much more readable.
When I place a typedef enum in my header files, I get multiple definitions errors when including that header in multiple .c files. Is there an extern reference of sort for typedef? Or does anyone know how to make the typedef be seen by all or multiple files?
Thanks much.
When I place a typedef enum in my header files, I get multiple definitions errors when including that header in multiple .c files. Is there an extern reference of sort for typedef? Or does anyone know how to make the typedef be seen by all or multiple files?
Thanks much.