Hello,
I’ve been attempting to execute a very simple OpenGL program using VC++ 6.0. I’m getting my code from a book, and from what I know of c++, it seems to be in good order. So… that means that I must be missing something. I checked my includes and lib folders for glut files, and discovered that I didn’t have any. So, I downloaded them from a university website. However, I still get all the original errors. I’ve included GL/glut.h and stdlib.h, at the top of my program. I running WinXP, and I have a GeForce2 graphics card, if it makes a difference. Is there a good website or page to look at that has information on how to set up your machine to be able to execute these programs? I’ll attach the errors below. Thanks! - Nick
opgl.obj : error LNK2001: unresolved external symbol __imp__glFlush@0
opgl.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
opgl.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12
opgl.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
opgl.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
opgl.obj : error LNK2001: unresolved external symbol __imp__glClear@4
opgl.obj : error LNK2001: unresolved external symbol __imp__glOrtho@48
opgl.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
opgl.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
opgl.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
opgl.obj : error LNK2001: unresolved external symbol _glutMainLoop@0
opgl.obj : error LNK2001: unresolved external symbol _glutDisplayFunc@4
opgl.obj : error LNK2001: unresolved external symbol _glutCreateWindow@4
opgl.obj : error LNK2001: unresolved external symbol _glutInitWindowPosition@8
opgl.obj : error LNK2001: unresolved external symbol _glutInitWindowSize@8
opgl.obj : error LNK2001: unresolved external symbol _glutInitDisplayMode@4
opgl.obj : error LNK2001: unresolved external symbol _glutInit@8
Debug/OpenLProject.exe : fatal error LNK1120: 17 unresolved externals
Error executing link.exe.