Mesa3D (OpenGL) and MinGW

I’ve just managed to compile and install Mesa3D version 7.2 under Microsoft Windows (using MinGW). Here are the steps in case anyone else needs to know:

To test Mesa3D you can for example download SGI’s cube.c and compile it by executing

gcc -o cube cube.c -lopengl32 -lglu32 -lglut32