   I try to compile program with glut under linux
  I try to compile program with glut under linux.I use code::blocks but not working The error is :/home/net/terr/tg.cpp|162|undefined reference to `glutBitmapCharacter'|The program have :#include <math.h>#include <GL/glut.h>#include <GL/gl.h>#include <GL/glu.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include "tga.h"#include "terrain.h"The glut.h is on /usr/include/GL/glut.hThe script package not find the glut libs ?!What is corect way to make this !?    
  I guess you must add the proper libraries. That is, GL (or "-lGL" in command line syntax) and I think it was GLUT.   