Results 1 to 4 of 4

Thread: urgent

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    2

    urgent

    hey there
    i'm new to graphics programming and i've got a background in C programming. I downloaded a couple of C files implementing things like teapot, sphere, rotating cube etc but i simply can't compile them. I used project in Borland C++ and Vis C++ but things are not working. Am i missing something??? The compiler keeps giving me messages about erros in the gh.h header file. PLease help me out!!!!

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Sep 2000
    Location
    SWEDEN
    Posts
    601

    Re: urgent

    Try including windows.h before gl.h and make sure you link to the proper libraries.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    2

    Re: urgent

    which libraries?? Do you mean I've got to add the glut32.dll file to the project???

  4. #4
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Huntsville, AL. USA
    Posts
    302

    Re: urgent

    You should add the following in sequence to the top of your program (in sequence):

    #include <windows.h>
    #include <gl/gl.h>
    #include <gl/glu.h> // Optional GL Utility Library
    #include <gl/glaux.h> // Optional GL Aux Toolkit
    #include <gl/glut.h> // Optional GLUT Toolkit

    And add to your project as needed :

    OpenGL32.lib, glu32.lib, glaux.lib, glut32.lib
    Obsessive - A word used by the lazy to describe the motivated.

Similar Threads

  1. Help me pls...very urgent...thanks very much...
    By scorpio79 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-07-2005, 07:58 PM
  2. URGENT, Help
    By alvin in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-23-2003, 08:12 PM
  3. URGENT, Help
    By alvin in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-23-2003, 12:56 AM
  4. URGENT, Help
    By alvin in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-22-2003, 06:32 PM
  5. Urgent!!
    By link19 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 07-27-2001, 04:04 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