title: Using a struct in a header file "unknown type" error
body: <p>I am using Kdevelop in Kubuntu.
  I have declared a structure in my datasetup.h file:</p>
  
  <pre><code>#ifndef A_H
  #define A_H
  
  struct georeg_val {
  
      int p;
      double h;
      double hfov;
      double vfov;
  };
  
  #endif
  </code></pre>
  
  <p>Now when I use it in my main.c file</p>
  
  <pre><code>int main()
  {
      georeg_val gval;
  
      read_data(gval); //this is in a .cpp file
  
  }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>georeg_chain.c:7:3: error: unknown type name 'georeg_val'</p>
  </blockquote>
  
  <p>(This is in the <code>georeg_val gval;</code> line)</p>
  
  <p>I would appreciate if anyone could help me resolve this error.</p>