Create GLFW window Error

I tried to compile the example programs(3D Primitives) of OF using code blocks but I am getting the following run time error.
Also tried the same with visual studio too but getting the same error.

ERROR:
[ error ] ofAppGLFWWindow: 65542: WGL: The driver does not appear to support Op
nGL
[ error ] ofAppGLFWWindow: couldn’t create GLFW window
[ error ] ofAppGLFWWindow: couldn’t create window
[ error ] ofAppGLFWWindow: 65538: There is no current context
[ error ] ofImage: loadImage(): couldn’t load image from “of.png”

Hardware details are under…

of_v0.8.4
Code Blocks