answered Feb 12 '13
CV_RANDOM_INVERT, cvCreateTrainingSamples, cvCreateTestSamples, cvCreateTrainingSamplesFromInfo and cvShowVecSamples are defined in cvharrtraining.h try to put the file in the same directory as other cpp.