Windows 7 Compilation problems with trivial code piece

I am having trouble compiling THIS piece of code using Visual Studio C++ 2010 on Windows 7. I have the nVidia GeForce 540M GT card with all the latest drivers updated as of yesterday

However, I get all sorts of ERROR: ‘xyz’ is undefined, where xyz is anything from glDeleteShader, glAttachShader, glLinkShader, glCompileShader, etc which seem to be all the OpenGL 2.0 / ES functions for the programmable pipeline, while the regular glClearColor, glClear, glEnable, glDisable, glDepthTest, etc seem to work just fine

Note, this works perfectly on my MacOSX machine, so I’m guessing its more of a header problem rather than a code problem

PS: I posted a similar thread like this a few hours ago, but I can’t seem to find it (can’t seem to have it appear in the forums, so what gives?)