PDA

View Full Version : Help me plz



em_rhum
07-09-2003, 05:03 PM
In glu.h or glut.h just prototype not definition for functions so how could I call function? I miss some file? What file I need?
When I start to compile there are many error:
main.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
main.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
main.obj : error LNK2001: unresolved external symbol _glutSwapBuffers@0
main.obj : error LNK2001: unresolved external symbol __imp__glClear@4
main.obj : error LNK2001: unresolved external symbol _glutMainLoop@0
main.obj : error LNK2001: unresolved external symbol _glutDisplayFunc@4
main.obj : error LNK2001: unresolved external symbol _glutCreateWindow@4
main.obj : error LNK2001: unresolved external symbol _glutInitWindowPosition@8
main.obj : error LNK2001: unresolved external symbol _glutInitWindowSize@8
main.obj : error LNK2001: unresolved external symbol _glutInitDisplayMode@4
main.obj : error LNK2001: unresolved external symbol _glutInit@8
Debug/chapter2_1.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.

Give me a hand plz!!

gvm
07-09-2003, 09:40 PM
have you linked your app with gl libs?

if not add this in your code:
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#pragma comment(lib, "glut32.lib")
or add theese libraries in your linker setup

(names could vary(i mean different))

em_rhum
07-11-2003, 06:09 PM
Thanks for your responde...