Can't compile a g++ file using OpenGL library on Mac OS using Xcode and Terminal : I am trying to compile this simple program:
[enter image description here][1]

But every time I try to do it using Xcode or terminal they give me the following warnings and the following errors:
[enter image description here][2]


Thanks ! Hope you guys can help me!


  [1]: http://i.stack.imgur.com/LYYLi.png
  [2]: http://i.stack.imgur.com/gpQh0.png
  