I'm writing c++ code using openGL.
The compilation is good, but when I try to run the program I get the message:

X Error of failed request: GLXBadFBConfig
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 34 ()
Serial number of failed request: 34
Current serial number in output stream: 33

I have tried many things I saw from other forums, but couldn't solve it.
I'm using Dell inspirion mini 1018 (32 bit), Ubuntu OS.
Any Idea?