title: typedef stuct problem in C (illegal use of this type as an expression)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3385533/typedef-stuct-problem-in-c">typedef stuct problem in C</a>  </p>
  </blockquote>
  
  
  
  <p>Hello there</p>
  
  <p>I am facing I have defined I a structure in a C header file:</p>
  
  <pre><code>typedef struct iRecActive{
  
      char iRecSID[32];
      unsigned char RecStatus;
      int curSel;
  
  }iRecAcitve_t;
  </code></pre>
  
  <p>but when I use the same structure in another file, the compiler gives some error:</p>
  
  <p>error C2275: 'iRecActive_t' : illegal use of this type as an expression
          d:\project\project original\mirec2pc v1.0\httpapp\httpapplication.h(15) : see declaration of 'iRecActive_t'</p>
  
  <p>I would be obliged if anyone could help me out</p>
  
  <p>Regards</p>
  
  <p>Umair</p>