I\'m having trouble running basic opencv scripts on my new machine. I\'ve installed opencv2.1. I am linking these files from the linker:
C:\\OpenCV2.1\\
this video will help you..
http://www.youtube.com/watch?v=9nPpa_WiArI
Or else I came up with another solution just copy the dll files directly into C:\Windows\SysWOW64 folder (this is my system folder). This helped me and my code was executed.