Problems with GL SDK 1.1

Hi everyone,

I have replaced my EGL and OpenGL win32 wrappers implementation with PowerVR GLES 1.1 SDK. I am trying to find out whether PowerVR SDK can be used as a replacement to my own Win32 implementation?

After linking my code with PowerVR EGL an GLES1.1 libraries, the code is crashing as it encounters the first GLES call: glEnable(GL_LIGHT0).

I am using MinGW toolchain v 5.1.3 and linking my source with libEGL.lib and libgles_cm.lib. Do I need to link with libgles_cl.lib instead? I have placed the corresponding DLLs: libEGL.dll and libgles_cm.dll in Windows Systems32 folder.