View Full Version : help with gluNewQuadric() error

12-04-2003, 05:28 PM
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);
test = gluNewQuadric();
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=, 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!