Original Post
I am trying trying to work through the book 'Beginning OpenGL Game Programming' and in the very first example I receive an error with the glut.h - I am using the glut.h that came in the CD contained in the book, and am using the DEV-C++ 4.9.9.2 IDE. Is their a known issue with the header, or my IDE that may cause this error?
Quote:and it concerns the the following chunk of code in the header-
1 C:\Dev-Cpp\OpenGL\Project\----\1\Main.cpp In file included from Main.cpp 50 C:\Dev-Cpp\include\GL\glut.h redeclaration of C++ built-in type `short' C:\Dev-Cpp\OpenGL\Project\----\1\Makefile.win [Build Error] [Main.o] Error 1
/* XXX This is from Win32's <ctype.h> */
# ifndef _WCHAR_T_DEFINED
typedef unsigned short wchar_t; //<--the specific line that causes the error
# define _WCHAR_T_DEFINED
# endif
# endif