Results 1 to 3 of 3

Thread: URGENT! IT WON'T CREATE WINDOWS OR CHANGE COLOR! PLEASE HELP NOW!

  1. #1
    Member Newbie
    Join Date
    Oct 2003
    Posts
    35

    URGENT! IT WON'T CREATE WINDOWS OR CHANGE COLOR! PLEASE HELP NOW!

    When I try to compile

    "glcolor3f(.2, 1, .2);"
    and
    "glutCreateWindow("Test");

    I get the following error messages:

    "undefined idntifier glcolor3f(.2, 1, .2);"
    and
    "undefined identifier glutCreateWindow_ATEXIT_HACK"

    I have included GL/gl.h and GL/glut.h, but it still does not work.
    HOW DO I FIX THIS? I NEED TO KNOW QUICKLY!!!
    DirectX: A giant pile of undocumented CRAP

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: URGENT! IT WON'T CREATE WINDOWS OR CHANGE COLOR! PLEASE HELP NOW!

    It's capital C in glColor, and put #define GLUT_DISABLE_ATEXIT_HACK before including the GLUT header. I think the define should take care of the second problem, but not sure.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: URGENT! IT WON'T CREATE WINDOWS OR CHANGE COLOR! PLEASE HELP NOW!

    Hi !

    If you are in a hurry you could try to find the problems youself, that is the fastest way, as said, the first is because you spelled the function call wrong, not sure about the second one, but if you get it when you compile the code, then you have either failed to include the correct files or they are missing (the header files) or you have failed to add some #define that might be needed, I have never used glut.

    If you get the error codes when you try to link the application you have failed to add the correct .lib files.

    You just have to read the error messages to figure this out, it's not that difficult to try to understand when the error messages says. if it says that you are trying to use an undefined identifier then you are not using the correct name or have not included the correct files.

    Mikael

Similar Threads

  1. Rotating an axis to create height change for obj
    By chronophile in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-18-2011, 03:53 AM
  2. how to change color
    By jyoung77 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-18-2003, 04:06 AM
  3. big problem ! urgent ! separate spec. color
    By Tresher in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 08-16-2002, 03:27 AM
  4. Color change when PC change!!!
    By Boubou in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-15-2000, 02:00 PM
  5. Color Won't Change!!
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-13-2000, 01:30 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