Getting OpenGL code to work in Bloodshed

This is a discussion on Getting OpenGL code to work in Bloodshed within the Game Programming forums, part of the General Programming Boards category; Wasnt sure which board to post this, but i thought this one was the most appropriate. I recently got some ...

  1. #1
    Let's do some coding! Welshy's Avatar
    Join Date
    Mar 2005
    Location
    Staffordshire University, UK
    Posts
    168

    Getting OpenGL code to work in Bloodshed

    Wasnt sure which board to post this, but i thought this one was the most appropriate.

    I recently got some OpenGL code, but i cant get it to run in my bloodshed compiler. I have the gl, glaux, and the glu headers.

    The errors say there's a linker error, i've been told that i need to bind the headers to bloodshed, is that right? if so how do i do that, ive googles it but with no outcome. Thanks for any help

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    You need to link the opengl libraries. Somewhere in your options there will be a place to add linker args... you need to add* -lopengl32.lib -lglu32.lib -lglaux.lib (these are lower case 'L's)

    *note: im totally guessing at the windows names for the libs, you might want to check them

  3. #3
    Let's do some coding! Welshy's Avatar
    Join Date
    Mar 2005
    Location
    Staffordshire University, UK
    Posts
    168
    i think i've managed to link the correct files, im down to just one error:

    " Nothing to be done for `all'. "

    I'm yet again stumped, lol

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >>" Nothing to be done for `all'. "

    This is a message from "make" which means the timestamps on the object code are newer than the source files. ie: your program is built... if its not working, try finding a clean option.

  5. #5
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    just #include <glext.h> instead of glaux
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    2
    Having had a look at some of the forums it seems that lots of people are having problems with this so I've put together a page on how I got it working here :

    Richard's current portfolio

    It describes the linker errors I encountered while trying to compile with OpenGL and Bloodshed and how I resolved them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't get sample shell code to work...
    By jcafaro10 in forum C Programming
    Replies: 6
    Last Post: 07-07-2010, 09:04 AM
  2. Why won't my OpenGL work?
    By Raigne in forum C++ Programming
    Replies: 7
    Last Post: 11-26-2005, 11:53 AM
  3. Premade Bloodshed code
    By arius-talon in forum C++ Programming
    Replies: 3
    Last Post: 03-25-2005, 08:29 AM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  5. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21