I haven't used freeglut but it appears you are trying to use glut and freeglut and they are conflicting. I am not sure if freeglut has dependencies on glut, but that does not appear to be the case....