Fatal error while converting image from rgb to gray
I am new to opencv . I am using cv::cvtColor(frame,frame,CV_BGR2GRAY); to convert rgb frame to gray but it gives linking error. All other basic functions eg reading and writing images and videos are working perfectly . Please help me which library I have to add