Hello All,
I have compilation erreur with the glut.h
redeclaration of C++ built-in type 'wchar_t'
if i disable the line '45' in the glut.h i get a compilation but the
soft i'snt executable.
'45' : typedef unsigned short wchar_t;
Jesse Hallam Wrote :
>http://www.idevgames.com/forum/showthread.php?t=5586
>
>
>"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:
>Code:
>
>extern "C"
>{
>#include <glut.h>
>}
>"
>
>
>
>And, for reference:
> http://nehe.gamedev.net/
>
>
>
>
>
Yes,but where write ?
extern "C" { #include <glut.h> }
in the main.cpp ?
or in the glut.h?
why the glut.h don't make that correct include itself?
there are a part of C include in glut.h and C++ include,but why the
ifdef and ifndef don't work?
the line "typedef unsigned short wchar_t;" was writing in the C section
of glut.h,
and why gcc don't make conditional compilation?
|