Watch this Author's files
I modified it so that the figure drawing happens outside of the function (as when you only want to read a DTED file in your project and not draw everything).
Sorry, it's been a while since I've been using the code. So I cannot help you with more details, but the readme file and the other comments here should help you.
@Awais: concerning your first problem: I guess you have to place yourself in the directory where FaceDetect.cpp lies when running the code. Then he should find the file.
Thanks for sharing. But I didn't get it working on Linux (Ubuntu 10.04) with the libraries from OpenCV 2.1. Maybe I have to look for some more solutions...
But a nice and fast way to detect faces on windows anyway!