• Advertisement

Archived

This topic is now archived and is closed to further replies.

Hi, I got errors compiling first lesson - path ?

This topic is 5371 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement