title: Including typedef enum from header file in another header file
body: <p>I keep running into an issue while trying to include an enumeration from one header file in antoher.
  The environment I am working in is embedded C using IAR Embedded Workbench.</p>
  
  <p>I have a header file for dedicated enumerated types named "enums.h" </p>
  
  <pre><code>#ifndef ENUMS_H_
  #define ENUMS_H_
  
  typedef enum
  {
      SET,
      SCHEDULE,
      EXECUTE
  }action_type_t;
  
  #endif
  </code></pre>
  
  <p>and a header file for a parser named "parser.h"</p>
  
  <pre><code>#ifndef PARSER_H_
  #define PARSER_H_
  
  #include "enums.h"
  #include &lt;stdint.h&gt;
  
  typedef struct
  {
      action_type_t action;
      uint16_t nbytes;
  }Message;
  
  #endif
  </code></pre>
  
  <p>In parser.c I include the header as</p>
  
  <p><code>#include "parser.h"</code></p>
  
  <p>When I compile this, I get the error "identifier action_type_t is undefined"</p>
  
  <p>What am I doing wrong here? I am stumped at this point.</p>
  
  <p>Thank you </p>