VC 5.0 wont compile GL

Please help,

I’m new to C++ and I just found out that my VBasic knowledge worth NOTHING in this world of OpenGL…

I tried VC5 and even if I include all GLU files to my project (with #include) and in the reference compile I can’t make it work.

Maybe it’s even worse than I thought… I tried MFC and I really hate MS programming…

Do you think I wont ever be able to program my game under VC ?

(Please, don’t tell me to go back to VB, too slugish perfs even with 3dfx/GL)

Calm down buddy!!! Don’t worry it will work.

I could tell you how but I would be losing 5 minutes of my life, so I am just linking you to that page
http://nehe.gamedev.net/

Look in the tutorial setup and look at how to setup opengl in windows. It’s the first tutorial.

Have fun!

I’ve done it with NeHe already…

two words : BAD LUCK

(I’ve also learned D3D a bit : THE WORST PAIN ON EARTH)

then what are the errors you get when you try to compile, because everything you need is in one the first paragraph of the first nehe’s tutorial.

Here it is (old NeHe tut that I have for one year) GL.H is installed in the libs dir :

esson1.obj : error LNK2001: unresolved external symbol _gluPerspective@32
lesson1.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
lesson1.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
lesson1.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
lesson1.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
lesson1.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4
lesson1.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8
lesson1.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
lesson1.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
lesson1.obj : error LNK2001: unresolved external symbol __imp__glClear@4
lesson1.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
lesson1.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
lesson1.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/lesson1.exe : fatal error LNK1120: 14 unresolved externals

GL, GLU , GLAUX, GLUT is there ? (!)

I’m always unlucky, maybe it works even with electronic ions…

Maybe I’m not learning GL, I should do first C/C++…(That’s what told NeHe 1st tut!)

Well, well thank you anyway.

The gl.h, glu.h should be in the include/gl directory and the opengl32.lib and glu32.lib files should be in the lib directory.

You have to link the .lib files to the project in the project settings before it will link the lib’s. keep trying it is worth it once you’ve got this bit down. The rest is not too hard.