PDA

View Full Version : I CANT GET ANYTHING THAT USES GLUT.H to COMPILE



11-17-2001, 10:08 AM
I NEED HELP. I AM USING VISUAL C++ AND HAVE JUST RECENTLY DOWNLOADED THE HEADER FILES FO OPENGL. IF SOMEONE COULD PLEASE OFFER ME A SIMPLE, STRAIGHT FORWARD INSTALATION PROCEDURE TO FOLLOW I WOULD BE MOST THANKFUL.
I CAN'T GET ANYTHING TO BUILD. IT COMPILES, THEN TRIES TO LINK AND I GET INSANE ERRORS LIKE SYNTAX ERRORS IN THE GLUT.H WHICH I KNOW IS IMPOSSIBLE. PLEASE HELP...

Lev
11-17-2001, 12:25 PM
your shift-key is broken, come again and ask when you repaired it.

-Lev

Platinum
11-17-2001, 03:17 PM
did you linked with the right .LIB files?

11-17-2001, 03:19 PM
include windows.h before glut.h

Lev
11-17-2001, 04:35 PM
include windows.h before glut.h

wrong, glut.h includes windows.h if needed, its kinda "smart"

j
11-17-2001, 05:06 PM
Make sure to build it as a Win32 CONSOLE app, not a regular windows application.

j

11-17-2001, 06:24 PM
I think that you are wrong...

quoted from glut.h

* GLUT 3.7 now tries to avoid including <windows.h>
# if 0
/* This would put tons of macros and crap in our clean name space. */
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# else

Lev
11-18-2001, 02:34 AM
glut.h defines all needed stuff that would be otherwise defined in windows.h.

you need to include windows.h before gl.h&glu.h, but not before glut.h
-Lev

thisPointer
11-19-2001, 04:58 AM
the whole setup is described at http://www.lighthouse3d.com/opengl/glut/