PDA

View Full Version : GLUT include proplem



10-25-2005, 03:30 AM
In a program i have included GLUT and GL yet when i try to complile i get this error

1 C:\Dev-Cpp\lib\main.cpp In file included from lib/main.cpp
43 C:\Dev-Cpp\include\gl\glut.h redeclaration of C++ built-in type `short'

heres the first few lines
#include <gl/glut.h>
#include<gl/gl.h>

help :-(

jide
10-25-2005, 05:08 AM
include gl.h before glut.h or best don't include gl.h at all as it's automatically included (because required) by glut.

This is not a GL related question.