title: Struct function returns incomplete type
body: <p>In header.h I have:</p>
  
  <pre><code>typedef struct {
      int score;
      int dice[6];
      int scorecard[2][7];
  } player;
  </code></pre>
  
  <p>Then in definitions.c I have:</p>
  
  <pre><code>struct player do_turn(struct player user) {
      for (int i = 0; i &lt; 6; i++) {
          int die = roll_die();
          user.dice[i] = die;
      }
      return (user);
  }
  </code></pre>
  
  <p>On the function definition I get the error "function do_turn returns incomplete type struct player"</p>
  
  <p>What am i doing wrong?</p>