SDL/openGl combo

No problem. I’ve had some success with SDL. I want to experiemnt with OpenGL but my helloworld opengl keeps crashing. Could you tell me whats wrong? Its compiling fine, just crashing on run.

#include <SDL.h>
#include
#include <GL/glut.h>

using namespace std;
void displayMe(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
glVertex3f(0.0, 0.0, 0.0);
glVertex3f(0.5, 0.0, 0.0);
glVertex3f(0.5, 0.5, 0.0);
glVertex3f(0.0, 0.5, 0.0);
glEnd();
glFlush();
}
int main(int argc, char** argv)
{

glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE);
glutInitWindowSize(300, 300);
glutInitWindowPosition(100, 100);
glutCreateWindow("Hello world :D");
glutDisplayFunc(displayMe);
glutMainLoop();
return 0;

}

Thank you in advance.