I'm just trying to get a simple program up and running using openGl but I'm having a hard time figuring it out. As I understand it, openGl comes with windows right? I downloaded the glut package from update menu in dev c++. I tried running this hello world source from wikibooks but I get linker errors like "undefined reference to 'glutInit'.
Code:
#include <gl/gl.h>
#include <gl/glut.h>
#include <gl/glu.h>


int main(int argc, char *argv[])
{
       glutInit(&argc, argv);
       glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
       glutInitWindowSize(800,600);
       glutCreateWindow("Hello World");
       glutMainLoop();
       
       return 0;
}
Thanks for any help.