GLUT compile errors with Code::Blocks
问题 A week ago, when I first tried to work with GLUT and followed this tutorial it worked without any errors. Now, a week later I installed the same software, same libraries, but every time I try to compile the project I get these errors (and it highlights a line in the glut.h file): obj\Debug\main.o(.text+0x1c)||In function `glutInit_ATEXIT_HACK':| C:\Program Files\CodeBlocks\MinGW\include\GL\glut.h|486|undefined reference to `__glutInitWithExit@12'| obj\Debug\main.o(.text+0x3d)||In function