I am trying to learn how to program in opengl and am using [this tutorial](http://www.opengl-tutorial.org/). Tutorial 1 works fine, tutorial 2 crashes with return 1. 

It fails on this:

```
GLuint VertexArrayID;
glGenVertexArrays(1, &VertexArrayID);
glBindVertexArray(VertexArrayID);

```

Specifically:

```
glGenVertexArrays(1, &VertexArrayID);

```

Any suggestions? Also related but never solved [OpenGL, FreeGlut and Glew crash with glGenVertexArrays call](https://stackoverflow.com/questions/11104047/opengl-freeglut-and-glew-crash-with-glgenvertexarrays-call)