Thread: Linker Errors in OpenGL

  1. #1
    For Narnia! Sentral's Avatar
    Join Date
    May 2005

    Linker Errors in OpenGL

    I am trying to go through the tutorials on this site:

    But I cant even get it setup right. I am using windows, with Dev C++. I downloaded all the header files. But I get linker errors when I try to compile the examples. I think i have to go into compiler options and add some things to the linker, but I dont know what to add.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!
    Share your experiences with us now!

    "We will game forever!"

  2. #2
    Registered User
    Join Date
    Apr 2002
    You need to link to the appropriate libraries. Probably opengl32.lib maybe some glu32.lib and others.

    Consult your compiler documentation on how to link to specific libraries.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Press CTRL-N, and make a project. Press CTRL-P, and add the above libraries to the "libraries" textbox.

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linker errors when compiling
    By The Wazaa in forum C++ Programming
    Replies: 4
    Last Post: 10-07-2006, 12:55 PM
  2. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 02:59 PM
  3. why am i getting linker errors?
    By dantestwin in forum C++ Programming
    Replies: 11
    Last Post: 07-08-2004, 10:34 AM
  4. MSVis-Studio C++ libraries and linker errors
    By kellydj in forum Windows Programming
    Replies: 10
    Last Post: 03-12-2002, 02:03 PM
  5. Linker errors with simple static library
    By Dang in forum Windows Programming
    Replies: 5
    Last Post: 09-08-2001, 09:38 AM