Hi, I got errors compiling first lesson - path ?

Started by
3 comments, last by GPX 20 years, 8 months ago
Hello, I''m new to openGL and just tried compiling the 1st lesson in my visual c++ 6, just to check if it''ll even work for me and i got this bunch of errors : --------------------Configuration: Cpp1 - Win32 Debug-------------------- Linking... Lesson1.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__glViewport@16 Lesson1.obj : error LNK2001: unresolved external symbol __imp__glHint@8 Lesson1.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4 Lesson1.obj : error LNK2001: unresolved external symbol __imp__glEnable@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__glShadeModel@4 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 Debug/Cpp1.exe : fatal error LNK1120: 14 unresolved externals Error executing link.exe. Cpp1.exe - 15 error(s), 0 warning(s) maybe i should add a path to openGL libraries or something like that? sorry for the noobish question, i really hope u can answer me and I''ll start creating 3d Stuff, it just ownz :D thx, and thx a lot for the great tuts ###:D
Yoni Levy.
Advertisement
Add opengl32.lib and glu32.lib to your project settings.
Or write on the top of your main cpp
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")

--------------------------------------------------------

"If it looks good, it is good computer graphics"
"If it looks like computer graphics, it is bad computer graphics"

Corrail
corrail@gmx.at
ICQ#59184081
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...
Arigato sensai !
But i still get this 2 errors :
--------------------Configuration: Lesson1 - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Lesson1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Lesson1.exe - 2 error(s), 0 warning(s)
Yoni Levy.
Have you chosen a console project or a windows 32 project? Looks like you have chosen a console project and you don''t have any void main(). Try it using a windows 32 project!

--------------------------------------------------------

"If it looks good, it is good computer graphics"
"If it looks like computer graphics, it is bad computer graphics"

Corrail
corrail@gmx.at
ICQ#59184081
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...
Thank you !!!
Workin :D
:>>>>>>>>>>>>>> )))))))) ^________________________________^
Yoni Levy.

This topic is closed to new replies.

Advertisement