title: accessing struct from c file in header
body: <p>I have 2 files for my project one called qsort.c and one called sorts.h. I have a struct declared and defined in qsort.c called record_list list, however i cant seem to access this file from my header file this is what I have in my header file: </p>
  
  <pre><code>void sort_empty(record_list *list) {     
      printf("%s %s %d",list -&gt; data -&gt; name.first,list -&gt; data -&gt; name.last, list -&gt; data -&gt; score);     
  }
  </code></pre>
  
  <p>When i try to run it using  <code>gcc -ansi -W -Wall -pedantic</code> I am getting this error: </p>
  
  <pre><code>error: unknown type name ‘record_list’
  void sort_empty(record_list *list) {
  </code></pre>
  
  <p>But I defined record_list in my c file? </p>