   opengl game programming book problem
  in the premier press opengl game programming book, i get an error message whenever i try to compile the first opengl windows code.  i double checked everything but the program still doesnt want to run. i am using visual c++ 6 and when i compile it, there are no errors.  when i build it though, 15 errors pop up and they are all link errors--------------------Configuration: hbjhvh - Win32 Debug--------------------Linking...tftf.obj : error LNK2001: unresolved external symbol _gluPerspective@32tftf.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0tftf.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4tftf.obj : error LNK2001: unresolved external symbol __imp__glViewport@16tftf.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4tftf.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8tftf.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4tftf.obj : error LNK2001: unresolved external symbol __imp__glEnd@0tftf.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12tftf.obj : error LNK2001: unresolved external symbol __imp__glBegin@4tftf.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12tftf.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16tftf.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12tftf.obj : error LNK2001: unresolved external symbol __imp__glClear@4Debug/hbjhvh.exe : fatal error LNK1120: 14 unresolved externalsError executing link.exe.hbjhvh.exe - 15 error(s), 0 warning(s)i checked the directories and all the files are there and linked to visual c++.  what could be the problem?another question, where do you put all the other code in the later chapters so that it draws pixels and 3d objects?   
Quote:Original post by nemesispoii am using visual c++ 6#1 stop using that abomination; it's more than 10 years old.  You can get visual studio 2008 express for free.  VS 6 is commonly regarded as the worst possible compiler/ide on the planetQuote:Original post by nemesispoi--------------------Configuration: hbjhvh - Win32 Debug--------------------Linking...tftf.obj : error LNK2001: unresolved external symbol _gluPerspective@32tftf.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0tftf.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4tftf.obj : error LNK2001: unresolved external symbol __imp__glViewport@16tftf.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4tftf.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8tftf.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4tftf.obj : error LNK2001: unresolved external symbol __imp__glEnd@0tftf.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12tftf.obj : error LNK2001: unresolved external symbol __imp__glBegin@4tftf.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12tftf.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16tftf.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12tftf.obj : error LNK2001: unresolved external symbol __imp__glClear@4Debug/hbjhvh.exe : fatal error LNK1120: 14 unresolved externalsError executing link.exe.You didn't modify the project settings to link to the OpenGL libraries.  There should be some info on how to do this in the book, or try looking on nehe.gamedev.net-me   ;  those tutorials are awesome   ;  now in visual c++ 2008 express, it gives me this error------ Build started: Project: ghjk, Configuration: Debug Win32 ------Compiling...ghjk.cppc:\documents and settings\christian\my documents\visual studio 2008\projects\ghjk\ghjk\ghjk.cpp(3) : warning C4627: '#include <windows.h>': skipped when looking for precompiled header use   Add directive to 'stdafx.h' or rebuild precompiled headerc:\documents and settings\christian\my documents\visual studio 2008\projects\ghjk\ghjk\ghjk.cpp(4) : warning C4627: '#include <gl/gl.h>': skipped when looking for precompiled header use   Add directive to 'stdafx.h' or rebuild precompiled headerc:\documents and settings\christian\my documents\visual studio 2008\projects\ghjk\ghjk\ghjk.cpp(5) : warning C4627: '#include <gl/glu.h>': skipped when looking for precompiled header use   Add directive to 'stdafx.h' or rebuild precompiled headerc:\documents and settings\christian\my documents\visual studio 2008\projects\ghjk\ghjk\ghjk.cpp(6) : warning C4627: '#include <gl/glaux.h>': skipped when looking for precompiled header use   Add directive to 'stdafx.h' or rebuild precompiled headerc:\documents and settings\christian\my documents\visual studio 2008\projects\ghjk\ghjk\ghjk.cpp(161) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?Build log was saved at "file://c:\Documents and Settings\Christian\My Documents\Visual Studio 2008\Projects\ghjk\ghjk\Debug\BuildLog.htm"ghjk - 1 error(s), 4 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========how do you link libraries in visual basic 2008 express?   ;  right click on the project go to properties, then linker, then Input.In there put the name of the lib file.make sure the .lib is in the lib folder for VS... then also make sure the OpenGL32.dll is somewhere in your PATH... (usually c:/windows/system32 works)   ;  it still doesnt want to work and the same error message pops up.   ;  turn off precompiled headers.... project properties, C/C++, Precomiled Headers... select not using them.   