error before and when compile
hi, i use opencv 231 and c++ whith visual studio 2010. i use http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html tutotial. but cascadeClassifier face_cascade; and cascadeClassifier eyes_cascade; have a error and shown a red line below cascadeClassifier. after compile I get this error:
1>------ Build started: Project: faceRecognition, Configuration: Debug Win32 ------
1>Build started 04/04/2013 09:03:57 ق.ظ.
1>InitializeBuildStatus:
1> Touching "Debug\faceRecognition.unsuccessfulbuild".
1>ClCompile:
1> main.cpp
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(11): error C2146: syntax error : missing ';' before identifier 'face_cascade'
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(12): error C2146: syntax error : missing ';' before identifier 'eyes_cascade'
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(12): error C2086: 'int cascadeClassifier' : redefinition
1> d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(11) : see declaration of 'cascadeClassifier'
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(18): error C2065: 'Cvcapture' : undeclared identifier
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(18): error C2065: 'capture' : undeclared identifier
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(21): error C2228: left of '.load' must have class/struct/union
1> type is 'int'
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(22): error C2228: left of '.load' must have class/struct/union
1> type is 'int'
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(25): error C2065: 'capture' : undeclared identifier
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(26): error C2065: 'capture' : undeclared identifier
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(30): error C2065: 'capture' : undeclared identifier
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(52): error C3861: 'equaliseHist': identifier not found
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(54): error C2228: left of '.detectMultiScale' must have class/struct/union
1> type is 'int'
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(55): warning C4018: '<' : signed/unsigned mismatch
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(57): error C2065: 'point' : undeclared identifier
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(57): error C2146: syntax error : missing ';' before identifier 'center'
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(57): error C3861: 'center': identifier not found
1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(58): error C2065: 'center' : undeclared identifier
1>d ...
I have for now update your post like 5 times. Please if you post code, use the code organizing button. Can you post the code also that you try to run? This error says nothing to me without the code generating the error.