First time here? Check out the FAQ!
answered 2018-03-14 07:20:05 -0600
easy answer: -lopencv_ml is missing in you libraries list
-lopencv_ml