EDN Admin
Well-known member
Hi mate,
I use c++ visual studio 2005 excpress,have a problem with linker,glut.lib and glu.lib...i copy glu32.lib and glut32.lib opengl32.lib in visualstudio2005/lib/ dir and the .h file in visualstudio2005/include/Gl/....now in visual studio in
property page menu linker->input->"Additional Dependencies" item add :"opengl32.lib" "glu32.lib" "glut32.lib".....compile and:
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutSwapBuffers referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glFlush referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glEnd referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glVertex2f referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glBegin referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glColor3f referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glPolygonMode referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glLineWidth referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glPointSize referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glLoadIdentity referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glMatrixMode referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glClear referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutMainLoop referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutDisplayFunc referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutCreateWindow referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutInitWindowSize referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutInitDisplayMode referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutInit referenced [color=""blue"]in[/color] function _main
now...what is primitiv.obj and why these error????!!??
...help me mate/msdn//emoticons/emotion-6.gif/msdn//emoticons/emotion-7.gif pls.....sry for my english/msdn//emoticons/emotion-1.gif
by and tks at all
View the full article
I use c++ visual studio 2005 excpress,have a problem with linker,glut.lib and glu.lib...i copy glu32.lib and glut32.lib opengl32.lib in visualstudio2005/lib/ dir and the .h file in visualstudio2005/include/Gl/....now in visual studio in
property page menu linker->input->"Additional Dependencies" item add :"opengl32.lib" "glu32.lib" "glut32.lib".....compile and:
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutSwapBuffers referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glFlush referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glEnd referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glVertex2f referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glBegin referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glColor3f referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glPolygonMode referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glLineWidth referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glPointSize referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glLoadIdentity referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glMatrixMode referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glClear referenced [color=""blue"]in[/color] function _display
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutMainLoop referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutDisplayFunc referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutCreateWindow referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutInitWindowSize referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutInitDisplayMode referenced [color=""blue"]in[/color] function _main
primitiv.obj : [color=""blue"]error[/color] LNK2019: unresolved external symbol _glutInit referenced [color=""blue"]in[/color] function _main
now...what is primitiv.obj and why these error????!!??
...help me mate/msdn//emoticons/emotion-6.gif/msdn//emoticons/emotion-7.gif pls.....sry for my english/msdn//emoticons/emotion-1.gif
by and tks at all
View the full article