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.
Your example code is an OpenGL library included with a particular Fortran. While it’s probably callable from C/C++ there is no documentation for this. You would need to create your own .h files to define the api.
I know of no C/C++ compiler that comes with a builtin OpenGl library. You need to pick a 3rd party OpenGl library written for C/C++. Here is a list:
https://wikis.khronos.org/opengl/Related_toolkits_and_APIs
In general you pick an sdk, download and build the sdk. You then update your project to reference the sdk. GLFW is one of the popular and comes with pre compiled binaries.
Note: If you ask for more help, tell us which library you picked and where you installed it.