when i tries to run simple code for OpenCV in Visual studio 12 it says many errors. How can i solve this
#include <opencv\cv.h>
#include <opencv\highgui.h>
using namespace cv;
int main()
{ // Create matrix to store.
Mat image;
// initializing capture
VideoCapture cap;
cap.open(0);
//create window to show image
namedWindow("window",1);
// copy webcam stream to image
cap>>image;
//print image to screen
imshow("window",image);
// delay 33ms
waitKey(33);
}
and its errors are
'OpenCV.exe' (Win32): Loaded 'C:\Users\Uzzal Das\Documents\Visual Studio 2012\Projects\OpenCV\Debug\OpenCV.exe'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Opencv243\build\x86\vc10\bin\opencv_core243d.dll'. Cannot find or open the PDB file.
'OpenCV.exe' (Win32): Loaded 'C:\Opencv243\build\x86\vc10\bin\opencv_highgui243d.dll'. Cannot find or open the PDB file.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Users\Uzzal Das\Documents\Visual Studio 2012\Projects\OpenCV\Debug\msvcp100d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Users\Uzzal Das\Documents\Visual Studio 2012\Projects\OpenCV\Debug\msvcr100d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\comctl32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avifil32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvfw32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avicap32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\PROGRA~2\SupTab ...
there are no errors in your output.