   OpenGL game programming (the book)
  Hey,I just started reading the book, and I''ve run into some problems:   1) I''ve tried to run the first opengl program (in Chap 1), and everything will compile just fine, but when I try to link, I get the following errors:Linking...WinMain.obj : error LNK2001: unresolved external symbol _gluPerspective@32WinMain.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0WinMain.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4WinMain.obj : error LNK2001: unresolved external symbol __imp__glViewport@16WinMain.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4WinMain.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8WinMain.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4WinMain.obj : error LNK2001: unresolved external symbol __imp__glEnd@0WinMain.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12WinMain.obj : error LNK2001: unresolved external symbol __imp__glBegin@4WinMain.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12WinMain.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16WinMain.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12WinMain.obj : error LNK2001: unresolved external symbol __imp__glClear@4Debug/Winprog.exe : fatal error LNK1120: 14 unresolved externalsError executing link.exe.   2)  I can run the app that comes with the Chapter 1 source, it tells me that glut32.dll can''t be found, so would anyone know where to get it?Thanks  
  You need to link to the opengl library flies, and glut is probably on the CD.    -~-The Cow of Darkness-~-If you see the image I am online ;  not GLUT. glu32.lib    To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.  ;  Thanks guys,  I completely forgot adding the libs.  It''s the always simple things I screw up. :-P  ;  I had the same problem when I wanted to execute a OpenGL program.  I didn''t realize there was a part in the tutorial where it said to include the libraries until someone else mentioned it to me...  ;  You can simply link the lib files by adding this to your code:#pragma comment(lib, "OpenGL32.lib")#pragma comment(lib, "glu32.lib")or you can link them in your compiler project settings.- BlueDev   [edited by - BlueDev on August 1, 2003 5:14:53 PM]