PDA

View Full Version : Wierd Syntax Error



SilverNoise
08-25-2004, 03:12 PM
After writting a basic OpenGL program the following lines of code:

#include <windows.h>
#include <iostream>
#include <gl/gl.h>
#include <gl/glu.h>

#include "OpenGLCapp.h"

bool exiting = false;
long wndWidth = 800;
long wndHeight = 600;

Gave the following errors:

error C2146: syntax error : missing ';' before identifier 'exiting'

and

error C2377: 'bool' : redefinition; typedef cannot be overloaded with any other symbol

If anybody has any helpfull thoughts, they will be highly appreciated.