Error with GLUT 3.7

1bcb647c254ab83814c0045f62d2ed9a
0
DevTrigger 101 Nov 21, 2003 at 00:13

I’m ruinng into this error with a certain line of code in the glut.h header file…

The line in the header is line 45 which reads:
typedef unsigned short wchar_t;

The error I’m receiving when I include the file is:
redeclaration of C++ Built-in

Am I doing something wrong? or am I using the wrong header.

I use Dev-C++ so I’m using a mingw compiler. Any help would be great.

2 Replies

Please log in or register to post a reply.

Fdbdc4176840d77fe6a8deca457595ab
0
dk 158 Nov 21, 2003 at 01:53

What other header files are you including? They may cause conflicts. Try to flip around the inclusion order.

1bcb647c254ab83814c0045f62d2ed9a
0
DevTrigger 101 Nov 21, 2003 at 02:18

That did it…. thanks!!