Thread: How do I get and install glut.h?

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    100

    Question How do I get and install glut.h?

    I've gotten the Bloodshed Dev-C++ IDE and have noticed that neither gl.h, glu.h, nor glut.h have come with it. Therefore I need to download these files and install them from the web, but everywhere I turn, instructions and stuff on how to get it all working right are too cryptic.

    My question is this: How should I go about obtaining those 3 files and making them work right for this IDE, considering that the OS is Windows XP? I'm not used to pulling all sorts of weird, technical tricks with operating systems and stuff, so please give simple instructions.

    Thanks!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Devpaks repository
    There's a menu option in the IDE which navigates this site (and others like it).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    100
    No, I need somebody to explain clearly how to actually get these files up and working in the IDE. So far I've placed glut32.dll in c:/windows/system32, glut32.lib in what looks like Dev-C++'s library directory, and glut.h in Dev-C++'s GL directory. Still I get this when trying to include gl/glut.h:

    50 C:\Dev-Cpp\include\gl\glut.h
    redeclaration of C++ built-in type `wchar_t'

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Downloading random files, and stuffing them in random locations doesn't cut it.

    There will be hundreds, possibly 1000's of them, and doing it manually one at a time won't work.

    Nor will simply copying the files from some other compiler which has them installed already.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    100
    Is it an absolute necessity that I go through Tools->Check for Updates/Packages? The server is down atm. If I wait for it to come up and then go through it, will things be fairly straightforward, including not having any issues with the apparently well-known wchar_t redeclaration error?

  6. #6
    Registered User
    Join Date
    Mar 2007
    Posts
    416
    Quote Originally Posted by jsrig88 View Post
    Is it an absolute necessity that I go through Tools->Check for Updates/Packages? The server is down atm. If I wait for it to come up and then go through it, will things be fairly straightforward, including not having any issues with the apparently well-known wchar_t redeclaration error?
    Yes, the download and install manager is pretty easy to use on Devcpp. If you want to use an IDE that's a still maintained check out codeblocks. It has an option for OpenGL projects that include the needed headers already. I've never had to use glut.h before, though.

  7. #7
    Registered User
    Join Date
    May 2009
    Posts
    2
    I tried to do this and ran into such trouble that when I managed to get it working finally, I detailed all the problems I ran into on my page

    Richard's current portfolio

    I tried to only detail problems not detailed elsewhere. Getting Bloodshed working with OpenGL can be extremely fiddly if you let it be but is well worth the effort once all the errors have been resolved.

Popular pages Recent additions subscribe to a feed