c++ compile version of haartraining