I don’t have problems calling code = glewInit(); but when I try to call other functions like glGenVertexArrays, I have this error:
undefined reference to `_imp____glewGenVertexArrays’
I read the instructions of how to set this library here but nothing. I have put the header <GL/glew.h> in the right place but stills not working.
Any idea?
When you program links successfully and runs there shouldnt be a problem with the installation of the lib.
What does glewinit return? Does it return GLEW_OK?
Are you sure that your OpenGL version support glGenVertexArrays? Read here how to check for this: Glew Basic Usage
Also remember to install a proper OpenGL supporting graphics driver.
0 should equal GLEW_OK, so it seems ok.
However, you should check if your OpenGL version is at least 3.0 and that GLEW supports the command glGenVertexArrays as described in the link i gave you.
V-man is right, you should check if you can retrieve the OpenGL function pointers for the non-working functions directly from windows using wglGetProcAdress… see here .
Also, since your graphics card is not a standard consumer model, you might to try to compile the code on another machine to ensure your code is fine.