A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
This looks like exactly the same problem that was answered at https://learn.microsoft.com/en-us/answers/questions/5961746/opengl-glutinit
By failing to remove the semicolon ending the line containing void display(void); the compiler only recognizes this single line as the declaration of a function that is not defined.
When the semicolon is removed, the following lines of code will be seen by the compiler as the body of the function.