If you're new to C++, then you should first learn C++ properly, because it's a hard and complex language and can't really be learnt with trial and error.
Here's a list of good C++ books.
Next you shouldn't post in the "General discussions" forum when you want help. The help sub-forums do exist for a reason.
As for the post, you're missing important information, thus you should take a look at the
General Rules and probably
this thread as well - i.e. "fatal error" is not really a error description.
My first guess is, that you haven't installed the OpenGL dev headers.