PDA

View Full Version : URGENT! IT WON'T CREATE WINDOWS OR CHANGE COLOR! PLEASE HELP NOW!



Andrewinator
10-26-2003, 12:04 PM
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!!!

Bob
10-26-2003, 01:33 PM
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.

mikael_aronsson
10-26-2003, 11:33 PM
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