Results 1 to 3 of 3

Thread: glut and vc++6

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    gainesville, fla, usa

    glut and vc++6

    I have been trying to get glut to work on vc++6 for over a month now and I continue to fail. I tried this over and over:
    (1)find all the necessary lib and dlls and put them in their appropriate places.
    (2)link opengl32.lib,glu32.lib,glut32.lib into my project settings.
    this approach just gives me about 102 errors.
    If anyone knows what the problem is please let me know....I AM DESPERATE to get glut working on windows_nt and windows_95/98.


  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000

    Re: glut and vc++6

    Okay, check the obvious things first:

    1) Are you creating your project as a Win32 console application?

    2) Are you #including either "glut.h" or [shudder] "windows.h" BEFORE "gl.h"? Normally with GLUT you should only #include "glut.h"; it'll set up the necessary macros and #include "gl.h" for you.

    If you're already doing both of these, please post (or mail me) the errors you're getting, and we'll see what we can do.

    Don't give up! A lot of people have problems starting out with GLUT, but I've never seen one that was insoluble.

  3. #3
    Member Contributor
    Join Date
    Feb 2000
    San Diego Ca, USA

    Re: glut and vc++6

    Mike C is correct- the only thing you need
    to include is glut.h skip the gl/gl.h and
    gl/glu.h also check that glut.h,glut.lib and
    glut.dll (or glut32.lib glut32.dll)
    are in the appropriate directories

    I have GLUT working on both VC++ 4.0 and
    VC++ 6.0 and it works just fine - don't give
    up because GLUT is an invaluable tool for the
    beginner.. lets you spend more time on the
    OpenGL API rather than OS specific window management

Similar Threads

  1. glut.h not found after installing glut
    By SagoO in forum OpenGL: General
    Replies: 8
    Last Post: 11-13-2010, 08:04 PM
  2. Timers - time.h or GLUT timerfunc? GLUT or SDL..?
    By omdown in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 12-16-2009, 12:27 PM
  3. Using GLUT meshes without GLUT window
    By Dwight in forum OpenGL: General
    Replies: 2
    Last Post: 11-25-2008, 03:06 AM
  4. glut teapot do i need to initialize glut?
    By bansheeogl in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-01-2005, 04:21 AM
  5. Subwindows in GLUT - New section available in the GLUT tutorial
    By Antonio in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-13-2000, 10:02 AM

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