Thread: Making glut.h work

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

    Making glut.h work

    I'm using VC8 in an XP environment. I have just now downloaded glut.h and installed the three main files in their various places, and my program will build fine, but when I try to run it, the thing crashes with the message

    "The procedure entry point __glutInitWithExit could not be located in the dynamic link library glut32.dll".


    What gives?


    I put glut32.lib in C:\Program Files\Microsoft Visual Studio 8\VC\lib.
    I put glut32.dll in system32.
    I put glut.h in C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\gl.

    One thing to note is that when I created the project, I made it an Empty Project in the project creation wizard, but I don't see how that should matter.

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    If you run "dumpbin /exports c:\windows\system32\glut32.dll" what do you get?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    100
    Basically Windows tells me that it can't find "dumpbin"

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by jsrig88 View Post
    Basically Windows tells me that it can't find "dumpbin"
    It's probably not in your path.

    Drill down the start menu into Visual Studio until you find "command prompt" and run that. It will set up your path correctly.

    dumpbin is installed with Visual Studio.

    EDIT: If you installed VC8 using default settings, you might already have a "Visual Studio Command Prompt" pinned into your Start menu. If so, launch that and try the command again.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems in getting OpenGL to work
    By zonf in forum C Programming
    Replies: 5
    Last Post: 02-13-2006, 04:48 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. Developers Wanted
    By Quasicom in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 08-24-2005, 12:46 AM
  4. Making screensavers work outside the windows folder
    By Da-Nuka in forum Windows Programming
    Replies: 3
    Last Post: 04-20-2005, 02:27 PM
  5. capture card wont work with xp
    By scott27349 in forum Tech Board
    Replies: 6
    Last Post: 02-08-2005, 09:47 PM