Archived

This topic is now archived and is closed to further replies.

Flowerpower

programming enviroment probs (GL)

Recommended Posts

Flowerpower    122
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?

Share this post


Link to post
Share on other sites
Krippy2k    134
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.

Share this post


Link to post
Share on other sites
Krippy2k    134
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

Share this post


Link to post
Share on other sites