title: Undefined reference error in C++ using Cygwin, why aren't my files linking?
body: <p>I have a series of files from a shared github project and they run perfectly for everyone else. But everytime I run them I get a </p>
  
  <p>"CMakeFiles/Dice.cpp.dir/Player.cpp.o: In function <code>Player::Player(std::string)':
  /cygdrive/c/Users/Abby/CLionProjects/Risk_Domination/Player.cpp:51: undefined reference to</code>Dice::Dice()'"</p>
  
  <p>error. Dice is the only class that I wrote on my computer. It is included in all the files it is used in, I don't know why the two won't link. I get the same error again the next time I refer to the variable dice.</p>
  
  <p>The file player, which is getting the error, includes everything below. And the class Dice does include a constructor Dice(), which is defined and has been tested. </p>
  
  <pre><code>#include "Dice.h"
  
  //and errors are pointing to line 51:
  
   this-&gt;dice = new Dice();
  
  //and line 81
  
   a = dice-&gt;rollDice(number_of_dice);
  </code></pre>