On the problem that CodeBlocks can’t compile glut

Need to add:
#define GLUT_DISABLE_ATEXIT_HACK
#include < windows.h>

Read More: