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.
And this is NOT like one of the other undefined reference problems with not linking properly.
EDIT: I reinstalled an earlier version(12.11) and it is working fine so I am just going to use it instead