GL App, Linker Errors
I recently just went through and reformatted and arranged some gl basecode from nehe and apparantly i made some huuge error. I get linker errors out the ass for my gl functions. I have about 14 of these type of linker errors:
BaseGL error LNK2019: unresolved external symbol __imp__glLoadIdentity@0 referenced in function "void __cdecl ReSizeGLScene(int,int)" (?ReSizeGLScene@@YAXHH@Z)
Ive got a working build but i cant seem to find what i changed to fug everything all up. Any ides?
just add
#pragma comment(lib,"opengl32.lib")
at the begining of your main source file
or, if you are using msvc, add opengl32.lib to the libraries in the project properties
you might also need glu32.lib and glut32.lib
hope that helps
matt
[edited by - lemurion on November 13, 2003 3:12:47 PM]
#pragma comment(lib,"opengl32.lib")
at the begining of your main source file
or, if you are using msvc, add opengl32.lib to the libraries in the project properties
you might also need glu32.lib and glut32.lib
hope that helps
matt
[edited by - lemurion on November 13, 2003 3:12:47 PM]
Looks like you're not linking to the OpenGL library. If you're using VC++ you need to add it to the list of library dependencies or add #pragma comment("lib, "OpenGL32.lib") to the code.
EDIT: oops too slow.
[edited by - dcosborn on November 13, 2003 3:13:45 PM]
EDIT: oops too slow.
[edited by - dcosborn on November 13, 2003 3:13:45 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement