Hello! Thanks so much for Pelles C!
But it will be greater if you can fix(?) opengl header files.
There is no GL_SHADING_LANGUAGE_VERSION and GL_SHADING_LANGUAGE_VERSION_ARB definiton.
For example, on my opensuse 12.3 it defined in glext.h as
#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C
An attached file building fine on linux:
gcc main.c -lglut -lGLU -lGL -Wall
Sorry for my bad language. All the best, ntfs.hard.
ref:
OpenGL spec 4.3: [22.2]
Because extensions vary from platform to platform and driver to driver, OpenGL developers can't expect interfaces for all extensions to be defined in the standard gl.h, glx.h, and wgl.h header files. Additional header files - glext.h, glxext.h, and wglext.h - are provided here. (http://www.opengl.org/registry/#headers)