PDA

View Full Version : Superbible sample code compilation problems



balt
02-09-2009, 06:40 PM
Hi all,

running cygwin on vista, trying to compile chapter 1 source code with gcc 3.4.4, getting weird ISO errors. Any leads anyone? First few lines of errors printed here:

balt@MacBookProVista /cygdrive/e/OpenGL_examples/src/chapt01/block
$ gcc Block.cpp
In file included from Block.cpp:6:
../../shared/gltools.h:55: error: ISO C++ forbids declaration of `GLvoid' with n
o type
../../shared/gltools.h:55: error: typedef `GLvoid' is initialized (use __typeof_
_ instead)
../../shared/gltools.h:55: error: `CallBack' was not declared in this scope
../../shared/gltools.h:55: error: expected `,' or `;' before '(' token


Cheers

- Balt