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 (:
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 (:
gavra.
Include that header in that source file.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Post the smallest and simplest program that demonstrates the problem, and also post the error message(s), if any.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Oh ........, never mind I'm an idiot XD
I mixed C++ in the .c file V_V
Thanks anyway (:
gavra.