Code:
#include <glut.h>

void mydisplay()
{
    glClear(GL_COLOR_BUFFER_BIT) ;
    glBegin(GL_POLYGON) ;
        glVertex2f(-0.5, -0.5) ;
        glVertex2f(-0.5, 0.5) ;
        glVertex2f(0.5, 0.5) ;
        glVertex2f(0.5, -0.5) ;
    glEnd() ;
    glFlush() ;
}

int main(int argc, char** argv)
{
    glutCreateWindow("simple") ;
    glutDisplayFunc(mydisplay) ;
    glutMainLoop() ;
}
i have the above code, but i have error compiling
i have the below error
glut.h: No such file or directory.

anyone can teach me how to do the linker and where to copy the openGL lib to?

thanks in advance


also, i wanna try using cygwin to do the compiling also
so same thing, where do i do the linker and where to copy the openGL lib to?