quadratic issues

I am using Visual C++ .NET and I am trying to set up a quadratic to use in my opengl window. I have a global quadratic as such
GLUquadricObj *quadratic;
I then try to initialize the quadritic as such…
and this is done at the end of the initializing of opengl. It compiles and links fine, but then when I try to run it, I get a break with this error ->

An unhandled exception of type ‘System.TypeLoadException’ occurred in temporary.exe

Additional information: Could not load type GLUquadric from assembly temporary, Version=1.0.1598.17136, Culture=neutral, PublicKeyToken=null.

what could this be? Thank you anyone for your help

did you link in the glu32.lib?

whoops sorry, just read that you said it compiled and linked fine.

I realise this thread is dead now but I thought I would post a solution here so the next time someone like me who comes looking for an answer doesn’t have to spend hours trawling the net.

Add the following code to the top of the cpp file you are working on:

class GLUquadric { };  

If anyone has a better solution I would love to hear it but this is the only way I have been able to use the gluNewQuadric function in VS.Net