programming enviroment probs (GL)
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?
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.
''bool'' and ''true'' are automatically valid in C++ but not in C.
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
Seeya
Krippy
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement