I have no direct experience of using OpenCV, although know people who have. Have you tried looking at this guide: OpenCV tutorial. It is specifically directed at those developing in MS Visual so it may give you some in sight. Sorry I can't be more helpful, but by the looks of the error messages you stated you are not compiling with the right libraries attached.

Someone with more direct experience of OpenCV may be able to help you more.