Itseez/opencv — pull request #1842 by StevenPuttemans (2013-11-21 12:34:19+00:00)
Title: Wrong example at the code Test.cpp. 

Corresponding tutorial (http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to) clearly states it should be the read_image sample and not this complex one...

This was reported in bug report #3315 (http://code.opencv.org/issues/3315). There it was suggested that it is probably a wrong linking error, but I thought it would be more clear to actually replace the wrong code sample inside the tutorials samples folder.