OpenGl & SDL2 install issue OpenGL, something simple

I’ve gotten SDL2 working fine but my attempt at OpenGL “hello world” is failing. It compiles but crashes run time. I need it up and running. I’ve posted the crashing hello world and the installation steps as well:

#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;

}

OpenGL install instructions for Eclipse:
https://www.badprog.com/c-opengl-installation

Thanks in advance - plz help.

cant get includes to work correctly, they are SDL.h iostream GL/glut.h;
installed freeglut into eclispe