Ask Your Question

Revision history [back]

After this part of the code:

namedWindow( "LK Demo", 1 );

Put,

waitKey(1000);

So that it becomes,

namedWindow( "LK Demo", 1 ); waitKey(1000); setMouseCallback( "LK Demo", onMouse, 0 );

Try building afterwards.

After this part of the code:

namedWindow( "LK Demo", 1 );

Put,

waitKey(1000);

So that it becomes,

namedWindow( "LK Demo", 1 ); waitKey(1000); );
waitKey(1000);
setMouseCallback( "LK Demo", onMouse, 0 );

Try building afterwards.