Instalei o codeblocks com o compilador gcc/g++ , e estava funcionando perfeitamente.
Depois instalei o glut, linkei as lib e includes, criei um projeto, e sai o seguinte erro:
-------------- Build: Debug in ertwertwert ---------------
Linking console executable: bin/Debug/ertwertwert
/usr/bin/ld: cannot find -lXxf86vm
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
*obs: só não roda quando é glut project.