Ask Your Question

Revision history [back]

Ok some basic lessons in debugging.

  • Don't let yourself get overrun by the amount of errors. Mostly it is a waterfall effect of 1 error leading to tons of others.
  • Take the first error, and try to fix it. Post a question about that and people will help you out if you do not find it.
  • Format your error output if posting one with the code block tool.

So using these useful tips, lets see at your code.

error C2146: syntax error : missing ';' before identifier 'face_cascade' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(11):

This clearly states that you have a command at line 11 or before that is not closed correctly. You have forgotten to place a ; sign, which does not close a command like it should on the rules above this error.

Fix it and report back :)