title: Codeblocks v. 13.12 error after adding class
body: <p>Using C++ in codeblocks v. 13.12 every time I add a new class and try to build and run it gives me an undefined reference to winmain@16.  After closing and opening codeblocks it works fine and the class files stay there but I would rather not have to restart codeblocks everytime I add a new class.  I am using freeglut, opengl and devil.</p>
  
  <p><a href="http://puu.sh/cIYAU/0a15f17478.png" rel="nofollow">picture</a></p>
  
  <p>And this is NOT like one of the other undefined reference problems with not linking properly.</p>
  
  <p>EDIT:
  I reinstalled an earlier version(12.11) and it is working fine so I am just going to use it instead</p>
  
  <p><a href="http://sourceforge.net/projects/codeblocks/files/Binaries/12.11/" rel="nofollow">downloads for 12.11</a></p>