programming enviroment probs (GL)

Started by
4 comments, last by Flowerpower 22 years, 10 months ago
I use MSVC++ and programmed a little applet with c++, but the VC++ somehow lost half of the program so I had to reinstall, and then add the glut32.dll, glut32.lib and glut.h. So far so good, but know I can''t compile this line: bool ballfly = true; I have to change it to: GLboolean ballfly = 1; Why? OpenGL is only an Api and not a complete programming language, so I should be able to use normal C++ or not?
Advertisement
Make sure your source files have the .cpp extension and that your project settings are setup for C++ and not straight C.

''bool'' and ''true'' are automatically valid in C++ but not in C.

And how can I check if I am using straight C or C++?
like Krippy2k said, make sure the extension on your source files are cpp, and not c.
Thanks
Sorry, on an older version of MSVC that I had you could change an option in the project settings that would compile everything as C or C++ regardless of the extension, but it does not appear to be there in version 6. Or I can''t find it. lol

Seeya
Krippy

This topic is closed to new replies.

Advertisement