Hi
I have a header file in which a union is defined .
I want to declare it to be extern so as to avoid multiple definitions while the header file is included more than once by the source files in my project which i am doing using Code Composer Studio(which has C,C++ compiler).
When i declare it to be extern the error message showing is "Storage class cannot be specified here".I would like to know the syntax for doing it.
Any help would be appreciated.
prem
I have a header file in which a union is defined .
Code:
union {
Uint32 uint;
short channel[2];
} AIC_data;
When i declare it to be extern the error message showing is "Storage class cannot be specified here".I would like to know the syntax for doing it.
Any help would be appreciated.
prem
Comment