this has got to be a stupid mistake im making, please help!
A line in my project:
bool running = true;
my error:
1 2 3 4 5
F:\OpenGl\BitMaps_OpenGL\main.cpp|11|error: two or more data types in declaration of 'running'|
F:\OpenGl\BitMaps_OpenGL\main.cpp||In function 'int WinMain(HINSTANCE__*, HINSTANCE__*, CHAR*, int)':|
F:\OpenGl\BitMaps_OpenGL\main.cpp|175|error: 'running' was not declared in this scope|
||=== Build finished: 2 errors, 0 warnings ===|
There is clearly a variable called running somewhere before line 11 in main.cpp (which I presume is the line you just posted) but the question is, where else did you creating the running variable?
Also, it seems like running has left the scope by the time it gets to line 175.
A quick fix (albeit wrong) is to just change the name so you don't violate the one declaration rule (I suppose it applies to variables as well).
so i messed around a little, and im getting an even stranger error, if i move the bool down to the bottom of the declaration list it now says the next variable has two or more data types. The program is roughly 200 lines+ so i dont want to post the entire thing
There is either an error in the "gl" headers, or "CGfxOpenGL.h". I'm learning towards the last one because it looks like there could be errors in it. Possibly post that?
If it's a third party header, it's possible the library needs reinstalled. If it's your header, I believe that's all that's wrong.