well its because you dont have glew that its not working. im assuming youve been programing in early opengl, that doesnt require GLEW. but with newer opengl you need GLEW or something like it (http://www.opengl.org/wiki/OpenGL_Loading_Library). all my programs need GLEW and im pretty sure that glPatchParameteri() is a newer function. also ive never heard of OpenGL.h, i dont need it in any of my programs. try it with GLEW
you have to first add this to your code to load the functions:
glewExperimental=TRUE;
GLenum err=glewInit();
if(err!=GLEW_OK)
{
//Problem: glewInit failed, something is seriously wrong.
cout<<“glewInit failed, aborting.”<<endl;
}
then you must link to GLEW by -lGLEW if youre using gcc from the terminal. if not you will have to figure out how to link to it.
you also should install GLEW using the packagae manager that comes with your system.
good luck