• 0

NeHe OpenGL Lessons


Question

Hi again i'm trying to run the VC++ version of the Nehen OpenGL Lessons demos, but when i try to run it

here comes the problem and i can't resove it, forgive me but i don't know nothing about VC++ but i want to

learn something basic about OpenGL! :rolleyes:

Here it is the compiler erros:

--------------------Configuration: Lesson6 - Win32 Debug--------------------

Linking...

Lesson6.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glTexParameteri@12

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glTexImage2D@36

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glBindTexture@8

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glGenTextures@8

Lesson6.obj : error LNK2001: unresolved external symbol _gluPerspective@32

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glViewport@16

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glHint@8

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glEnable@4

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glEnd@0

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glTexCoord2f@8

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glBegin@4

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12

Lesson6.obj : error LNK2001: unresolved external symbol __imp__glClear@4

Lesson6.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4

Lesson6.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8

Lesson6.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

Debug/Lesson6.exe : fatal error LNK1120: 26 unresolved externals

Error executing link.exe.

Lesson6.exe - 27 error(s), 0 warning(s)

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

can someone help me please!!!!!

Thanks

UltraMAX

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Okay.... Simple fix... create a project for "opengl" or whatever msvc has and see what libraries it links to and then add it to your project..

I'm sure in a few mins someone who know msvc will tell you why, but here's a simple solution in the meanwhile.

Link to comment
Share on other sites

  • 0

Thanks you very much to trying to helping me guys!!!!

I tried what you said but, i'm almost there, forgive me if i'm boring you but i don't have any experience yet with VC++,

but now it appears the following erros:

--------------------Configuration: Lesson6 - Win32 Debug--------------------

Linking...

Lesson6.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

Debug/Lesson6.exe : fatal error LNK1120: 1 unresolved externals

Error executing link.exe.

Lesson6.exe - 2 error(s), 0 warning(s)

if someone knows how to fix it please help me please, i tried what they said in the page

that kjordan2001 give but i think in visual studio 6 things works different and i don't know how to fixe it!

Once again, forgive me my bad english and if i'm boring you guys!

Thanks

UltraMAX

Link to comment
Share on other sites

  • 0

Finally i did it, in Visual C++ we must go to the Project menu , Settings, and then click on the LINK tab. Under "Object/Library Modules" at the beginning of the line (before kernel32.lib) add OpenGL32.lib GLu32.lib GLaux.lib and also we must change the flag /subsystem:console to /subsystem:windows under "Project Options".

Once again, thank you very much guys for hrlping me!

Keep going on the good coding ...

UltraMAX

P.S . Forgive me for my bad English, i hope you understand what i've writed. :rolleyes:

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.