PDA

View Full Version : gl.h



DaKilla
08-11-2001, 11:00 PM
Hey,
I'm programming in borland C++ 4.52 $ vc++6.0. Both give me the same error for gl.h

Error ..\..\..\..\BC45\INCLUDE\GL\GL.H 832: Declaration syntax error
Error ..\..\..\..\BC45\INCLUDE\GL\GL.H 833: Variable 'WINGDIAPI' is initialized more than once

Which is repeated for every part of it. This error happens for bot programs. The #includes that im using are:

#include <windows.h>
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>

I'm fairly new to opengl programing. Any help would be great!!

V--man
08-12-2001, 03:02 AM
Hi and good morning,

>>>>>>
I'm programming in borland C++ 4.52 $ vc++6.0. Both give me the same error for gl.h
Error ..\..\..\..\BC45\INCLUDE\GL\GL.H 832: Declaration syntax error
Error ..\..\..\..\BC45\INCLUDE\GL\GL.H 833: Variable 'WINGDIAPI' is initialized more than once
<<<<<<<<<<

all that means is that WINGDIAPI is defined more than once, which is odd. I programmed in Borland C++ 4.52 and never saw that message.

Look inside gl.h for WINGDIAPI and if it's redefined, remove it. It should only be defined in windows.h

V-man

j
08-12-2001, 11:19 AM
If you are using glut, don't include windows.h.

j