PDA

View Full Version : Linking Errors



gottijay
07-26-2011, 02:40 PM
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

Alfonse Reinheart
07-26-2011, 03:33 PM
C and C++ are case-sensitive. So "onidle" is not the same as "OnIdle".

gottijay
07-26-2011, 04:21 PM
Silly me!! thanks Reinheart