I just started learning OpenGL and I have a bug with my first project.
I know I installed Freeglut right because I can run some other code that includes freeglut and glew.
So what am I doing wrong ?
In C, empty parenthesis means a function takes any number of parameters (similar to the elipsis (...) in C++), whereas in C++ it means a function takes no parameters.
So what you have there looks like it would work for C++ but would break for C.
To correct:
1 2 3 4 5
staticvoid RenderSceneCB(void) // <- add the 'void' here
{
glClear(GL_COLOR_BUFFER_BIT);
glutSwapBuffers();
}