I declared an enum as a type in an header file and I want to use it in my .c file, should I use extern?
.h
In the .c file the compiler doesn't recognize MY_TYPE.Code:typedef enum {BLA, BLABLA, BLABLABL} MY_TYPE;
Thanks (:
Printable View
I declared an enum as a type in an header file and I want to use it in my .c file, should I use extern?
.h
In the .c file the compiler doesn't recognize MY_TYPE.Code:typedef enum {BLA, BLABLA, BLABLABL} MY_TYPE;
Thanks (:
Include that header in that source file.
I did. But it doesn't work..
Post the smallest and simplest program that demonstrates the problem, and also post the error message(s), if any.
Oh ........, never mind I'm an idiot XD
I mixed C++ in the .c file V_V
Thanks anyway (: