Reputation: 157
I have been trying to figure this out for hours but with no luck:
error LNK2019: unresolved external symbol _imp_glBegin@4 referenced in function _main
error LNK2019: unresolved external symbol _imp_glEnd@4 referenced in function _main
error LNK2019: unresolved external symbol _imp_glFlush@4 referenced in function _main
error LNK1120: 3 unresolved externals
Pretty standard errors for linking, but I tried everything that came to my mind without luck unfortunately.
My setup is as follows:
Upvotes: 1
Views: 412
Reputation: 9821
GLEW stands for "OpenGL Extension Wrangler Library". It doesn't define core OpenGL functions like glBegin()
and glEnd()
. Are you also including your opengl32.lib
, glu32.lib
, and glut32.lib
libs?
Upvotes: 2