Lesson 1 Compile Errors
Hello.
No matter what I do, I could never get NeHe lesson 1 to compile correctly in MSVC++ 6.0 SP5.
I get the following:
--------------------Configuration: OGLSnook - Win32 Debug--------------------
Linking...
OGLSnook.obj : error LNK2001: unresolved external symbol _gluPerspective@32
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glHint@8
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__glClear@4
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
OGLSnook.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
What''s the problem? What am I leaving out? Thanks for any help.
this is NOT a compiler error. it's a linker error.
1) you need to create a Win32 console application.
2) you need to link the "OpenGL32.lib" file to your application.
Edit: also you need to link "glu32.lib".
peace.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
[edited by - jenova on March 26, 2002 4:56:55 PM]
1) you need to create a Win32 console application.
2) you need to link the "OpenGL32.lib" file to your application.
Edit: also you need to link "glu32.lib".
peace.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
[edited by - jenova on March 26, 2002 4:56:55 PM]
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
Thanks for the help.
I''m still getting
--------------------Configuration: OGLSnook - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Have I missed something else?
I''m still getting
--------------------Configuration: OGLSnook - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Have I missed something else?
You've mistakenly chosen to make a console app, not a win32 app.
RTM.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
[edited by - siaspete on March 26, 2002 5:39:43 PM]
RTM.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
[edited by - siaspete on March 26, 2002 5:39:43 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement