Woo! finally got it to build. Thx! Actually, it was a stupid mistake on my part. First, i hadn't put the appropriate includes for mesa gl in the mingw directory and then i hadn't linked to the opengl32.lib file in the correct order. So, if anyone wants to use version 1.3 opengl functions, compile mesa opengl on windows, its very easy if using microsoft visual c++.