title: How to use glutBitmapCharacter
body: <p>I'm trying to write fonts on my SDL's window and glutBitmapCharacter.</p>
  
  <p>But I'm failling to compile it.</p>
  
  <p>My compilator error message is : </p>
  
  <pre><code> undefine reference to « glutBitmap9By15 »
   undefine reference to « glutBitmapCharacter »
  </code></pre>
  
  <p>This  code :</p>
  
  <pre><code>    #include &lt;SDL/SDL.h&gt;
      #include &lt;GL/gl.h&gt;
      #include &lt;GL/glu.h&gt;
      #include &lt;GL/glut.h&gt;
      #include &lt;cstdlib&gt;
      #include &lt;cmath&gt;
      #include &lt;string&gt;
      #include &lt;iostream&gt;
  
  int main()
  {    
        SDL_Init(SDL_INIT_VIDEO);
        atexit(SDL_Quit);
        SDL_SetVideoMode(WIDTH, HEIGHT, 32, SDL_OPENGL);
        glMatrixMode(GL_PROJECTION);
        glLoadIdentity();
        gluOrtho2D(0,WIDTH,0,HEIGHT);
        SDL_EnableKeyRepeat(100,100);
  
        glMatrixMode(GL_PROJECTION);
        glPushMatrix();
        glLoadIdentity();
        gluOrtho2D(0.0, WIDTH, 0.0, HEIGHT);
  
        glMatrixMode(GL_MODELVIEW);
        glPushMatrix();
        glLoadIdentity();
        glColor3f(0.0, 1.0, 0.0); // Green                                                                                 
  
        glRasterPos2i(10, 10);
  
        std::string s = "Respect mah authoritah!";
        void * font = GLUT_BITMAP_9_BY_15;
        for (std::string::iterator i = s.begin(); i != s.end(); ++i)
          {
            char c = *i;
            glutBitmapCharacter(font, c);
          }
  
        glMatrixMode(GL_MODELVIEW);
        glPopMatrix();
  
        glMatrixMode(GL_PROJECTION);
        glPopMatrix();
  }
  </code></pre>
  
  <p>Does someone know what I have to do to make it work ?</p>
  
  <p>Thanks </p>