first add include file of opencv -- in my system: C:\opencv\build\include
then add lib directory -- in my system: C:\opencv\build\x86\vc11\lib --->note : im using vs2012
then add names of libs to input linker:
note: "im using opencv 2.4.9" what about u?
opencv_calib3d249d.lib
opencv_contrib249d.lib
opencv_core249d.lib
opencv_features2d249d.lib
opencv_flann249d.lib
opencv_gpu249d.lib
opencv_highgui249d.lib
opencv_imgnd249d.lib
opencv_imgproc249d.lib
opencv_ml249d.lib
opencv_nonfree249d.lib
opencv_objdetect249d.lib
opencv_ocl249d.lib
opencv_photo249d.lib
opencv_stasm249d.lib
opencv_stitching249d.lib
opencv_superres249d.lib
opencv_ts249d.lib
opencv_video249d.lib
opencv_videostab249d.lib
if you are using v2013 you must add v12 of lib
for another example
if you are using v2012 you must add v11 of lib
opencv version ?