Results 1 to 3 of 3

Thread: glutBitmapString undefined

  1. #1
    Member Contributor
    Join Date
    Nov 2011

    glutBitmapString undefined

    Hi everyone.
    I read that function glutBitmapString(font, string) write a string on screen.

    If I try to use this function I have an undefined compile error. I include glut and opengl headers and I use Xcode 4

  2. #2
    Newbie Frequent Contributor
    Join Date
    Mar 2016

    Re: glutBitmapString undefined

    In general to resolve build problems it is helpful if you post the complete error message you get.

    Undefined symbols are reported by the linker (not the compiler) and inform you that none of the object files (.o generated by the compiler from the corresponding .c/.cpp) or libraries that you are linking contain a symbol of the given name.
    It sounds like you are not linking the glut library.

    I don't know exactly how to do this in Xcode, but there should be a dialog where you can configure the libraries to link with - possibly under something like project properties/dependencies or some such.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Oct 2010

    Re: glutBitmapString undefined

    He seems to link with glut.

    Cf this topic:

    So it might be something else, like using glut headers from one version and glut library from another version. Try to check if you use both headers and libraries from the same version (glut, freeglut or so) but don't mix them.

Similar Threads

  1. Problems rendering glutBitmapString
    By eugen91 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-06-2012, 11:11 AM
  2. glutBitmapString misses blank spaces
    By sguTiger in forum OpenGL: General
    Replies: 1
    Last Post: 04-22-2012, 05:42 AM
  3. glutBitmapString mess with my OpenGL ES App
    By cobrahc in forum OpenGL ES
    Replies: 1
    Last Post: 09-25-2007, 03:55 AM
  4. Everything undefined
    By aristophren in forum OpenGL: Linux
    Replies: 3
    Last Post: 03-15-2003, 03:27 PM
  5. undefined reference to gl everything
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-24-2000, 12:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean