PDA

View Full Version : OpenGL and ortho2d



KamBha
03-30-2002, 03:12 AM
I did a program a while back on windows 98 using openGL. I upgraded to windows 2000 and the same program (Code unchanged) ceased to work. The problem (According to VC++6) is

Gasket.obj : error LNK2001: unresolved external symbol _gluOrtho2D@32
Debug/Gasket.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

It uses glut and I have put both opengl32.lib and glut32.lib in my link settings for the project. It is a simple 2d project and as I said it worked fine in windows 98. Any ideas? I would prefer not to post the code because it is awful code (It is Sierpinski Gasket using the recursive algorithm).

Thanks in advance


[This message has been edited by KamBha (edited 03-30-2002).]

chowe6685
03-30-2002, 07:01 AM
if you use gluOrtho2d(...) you will need to link with glu32.lib as well, you could also just use glOrtho(...)

KamBha
03-30-2002, 09:56 PM
OK, I did that and it works kind of. The background looks crap and dirty. Any ideas.

Thanks.