please can anyone tell me why i get this error …
1>DishAssembly_3D.obj : error LNK2019: unresolved external symbol “void __cdecl onIdle1(void)” (?onIdle1@@YAXXZ) referenced in function “void __cdecl TheButtonCallback8(void)” (?TheButtonCallback8@@YAXXZ)
static void TheButtonCallback8()
{
if(window2==0){
window2 = glutCreateWindow("animation");
glutDisplayFunc(display2);
glutReshapeFunc(OnReshape);
glutIdleFunc(onIdle1);
}
printf("Run Animation");
}
void OnIdle1()
{
if(window2 != 0)
{
rY += 0.05;
glutPostWindowRedisplay(window2);
}
else
{
glutIdleFunc(0);
glutDestroyWindow(window2);
glutPostWindowRedisplay(window1);
window2 = 0;
rY = 0;
}
}
thank you