I have been working with GLUT for window creation and keyboard/mouse input.

I have compiled programs with glut using both Lcc-win32 and Dev-C++, and get this bug that the program will not exit correctly when the [X] button is clicked on. They keep running in the background and I have to use a CTRL+DEL to end it. The problem has to be in the exe file since it does it on other computer I run the file on.