help with gluNewQuadric() error

Hi, I’m trying to use quadric objects in my program but I keep getting a runtime error when i call gluNewQuadric().

When I was trying to figure out what was wrong I made a really short sample program:

#include <GL/glut.h>

int main(int argc, char *argv)
{
GLUquadricObj
test;
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGB);
glutInitWindowSize(300,300);
glutCreateWindow(“hi”);
test = gluNewQuadric();
glutMainLoop();
return 0;
}

this code still throws the same exception when it gets to gluNewQuadric(). Here is the message:

Unhandled Exception: System.TypeLoadException: Could not load type GLUquadric from assembly final_project, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
.
at ?A0x33e28026.$E7()
Press any key to continue

Am I missing something obvious? I know I have gotten this to work before but I can’t figure out what the deal is now.

Thanks a lot for any help!