Error 1 error LNK2019: unresolved external symbol __imp__glutInitContextProfile@4 referenced in function “void __cdecl InitWindow(int,char * * const)” (?InitWindow@@YAXHQAPAD@Z)
Error 2 error LNK2019: unresolved external symbol __imp__glutInitContextFlags@4 referenced in function “void __cdecl InitWindow(int,char * * const)” (?InitWindow@@YAXHQAPAD@Z)
Error 3 error LNK2019: unresolved external symbol __imp__glutInitContextVersion@8 referenced in function “void __cdecl InitWindow(int,char * * const)” (?InitWindow@@YAXHQAPAD@Z)
Error 4 error LNK1120: 3 unresolved externals
I can’t understand the problem, please help.
Thanks
[QUOTE=animaks;1239610]Error 1 error LNK2019: unresolved external symbol __imp__glutInitContextProfile@4 referenced in function “void __cdecl InitWindow(int,char * * const)” (?InitWindow@@YAXHQAPAD@Z)
Error 2 error LNK2019: unresolved external symbol __imp__glutInitContextFlags@4 referenced in function “void __cdecl InitWindow(int,char * * const)” (?InitWindow@@YAXHQAPAD@Z)
Error 3 error LNK2019: unresolved external symbol __imp__glutInitContextVersion@8 referenced in function “void __cdecl InitWindow(int,char * * const)” (?InitWindow@@YAXHQAPAD@Z)
Error 4 error LNK1120: 3 unresolved externals
I can’t understand the problem, please help.
Thanks[/QUOTE]
I guess, you haven’t linked glut library while building your program.
Here wasn’t the declaration of my problem
It’s definitely a linker error. Are you absolutely sure you have added freeglut.lib? BTW, kudos on opening yet another thread …