PDA

View Full Version : GLUT 3.7.6 Error


DevTrigger
2003.11.20, 09:09 PM
I'm getting this error during compilation at about line 50 in the glut.h header file. The line reads:

typedef unsigned short wchar_t;

The Error that I'm getting is:

"redeclaration of C++ built-in"

Am I doing something wrong? or am I using an incorrect header file?? I compile using Dev-C++ so it's a mingw based compiler. I already have the mingw lib files, so I don't think that's the problem. I tried commenting out that line, and the program compiles, but then throws an exception and crashes. Any help would be great.

Fenris
2003.11.20, 09:16 PM
First of all, this is a Mac development board. You are still very welcome, just don't expect us to be very Win-savvy...

However, I can expect that you have either included too much (I don't think you need to include both gl.h and glut.h, for example) or need to put:

extern "C"
{
#include <glut.h>
}


Check out http://nehe.gamedev.net for his Dev-Cpp examples.

Good luck!

DevTrigger
2003.11.20, 09:23 PM
Oops... Sorry I didn't even realize that this was a mac board... I was so frantic to get my questions on a bunch of boards that I didn't even pay attention to what I was doing...

Thanks for the help though...