Skip to main content
gamedev.net
🔒 Locked

glut.h Error

Started by Waffle 0 replies 500+ views
Original Post
Waffle
Waffle
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 -
Quote:
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
and it concerns the the following chunk of code in the header-
   /* 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

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?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.