I installed cygwin and followed this for installation http://cs.calvin.edu/curriculum/cs/112/resources/installingEclipse/cygwin/
then I run this on my cmd
cd opencv
cd sources
cd samples
cd cpp
g++ -ggdb `pkg-config --cflags --libs opencv` facedetect.cpp -o facedetect
It resulted into this
g++: error: `pkg-config: No such file or directory
g++: error: opencv`: No such file or directory
g++: error: unrecognized command line option '--cflags'
g++: error: unrecognized command line option '--libs'
what I'm trying to do is to run facedetect.cpp in opencv to test my classifier any help to fix this issue or provide alternative approach is appreciated