prog.cpp:1:20: error: stdafx.h: No such file or directory
prog.cpp:2:30: error: opencv2/opencv.hpp: No such file or directory
prog.cpp:4: error: expected initializer before ‘*’ token
prog.cpp:5: error: expected initializer before ‘*’ token
prog.cpp:6: error: ‘IplImage’ was not declared in this scope
prog.cpp:6: error: ‘image’ was not declared in this scope
prog.cpp:6: error: ‘CvHaarClassifierCascade’ was not declared in this scope
prog.cpp:6: error: ‘cascade’ was not declared in this scope
prog.cpp:6: error: initializer expression list treated as compound expression
prog.cpp:9: error: second argument of ‘int main(int, char*)’ should be ‘char **’
prog.cpp: In function ‘int main(int, char*)’:
prog.cpp:11: error: ‘CvCapture’ was not declared in this scope
prog.cpp:11: error: ‘capture’ was not declared in this scope
prog.cpp:12: error: ‘IplImage’ was not declared in this scope
prog.cpp:12: error: ‘frame’ was not declared in this scope
prog.cpp:12: error: ‘frame_copy’ was not declared in this scope
prog.cpp:15: error: ‘storage’ was not declared in this scope
prog.cpp:15: error: ‘cvCreateMemStorage’ was not declared in this scope
prog.cpp:16: error: ‘cvCaptureFromCAM’ was not declared in this scope
prog.cpp:17: error: ‘cvNamedWindow’ was not declared in this scope
prog.cpp:25: error: ‘cvGrabFrame’ was not declared in this scope
prog.cpp:27: error: ‘cvRetrieveFrame’ was not declared in this scope
prog.cpp:33: error: ‘cvSize’ was not declared in this scope
prog.cpp:33: error: ‘IPL_DEPTH_8U’ was not declared in this scope
prog.cpp:33: error: ‘cvCreateImage’ was not declared in this scope
prog.cpp:36: error: ‘IPL_ORIGIN_TL’ was not declared in this scope
prog.cpp:37: error: ‘cvCopy’ was not declared in this scope
prog.cpp:40: error: ‘cvFlip’ was not declared in this scope
prog.cpp:43: error: ‘cascade’ was not declared in this scope
prog.cpp:43: error: ‘CvHaarClassifierCascade’ was not declared in this scope
prog.cpp:43: error: expected primary-expression before ‘)’ token
prog.cpp:43: error: expected `;' before ‘cvLoad’
prog.cpp:48: error: ‘stderr’ was not declared in this scope
prog.cpp:48: error: ‘fprintf’ was not declared in this scope
prog.cpp:52: error: ‘detect_and_draw’ cannot be used as a function
prog.cpp:56: error: ‘cvWaitKey’ was not declared in this scope
prog.cpp:64: error: ‘cascade’ was not declared in this scope
prog.cpp:64: error: ‘cvReleaseHaarClassifierCascade’ was not declared in this scope
prog.cpp:66: error: ‘cvReleaseImage’ was not declared in this scope
prog.cpp:67: error: ‘cvReleaseCapture’ was not declared in this scope
prog.cpp:68: error: ‘cvReleaseMemStorage’ was not declared in this scope
prog.cpp:14: warning: unused variable ‘input_name’
prog.cpp: At global scope:
prog.cpp:77: error: redefinition of ‘bool detect_and_draw’
prog.cpp:6: error: ‘bool detect_and_draw’ previously defined here
prog.cpp:77: error: ‘IplImage’ was not declared in this scope
prog.cpp:77: error: ‘img’ was not declared in this scope
prog.cpp:77: error: ‘CvHaarClassifierCascade’ was not declared in this scope
prog.cpp:77: error: ‘cascade’ was not declared in this scope