Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Undefined reference to 'cvSmooth'

$
0
0
Hi. Write on QT and use version OpenCV 2.4.13. Today, with a problem. When you start the program, fails with the following error: D:\delo\po-russian\po-russian\sglazhivanie.cpp:31: error: undefined reference to `cvSmooth' and collect2.exe:-1: error: error: ld returned 1 exit status #include #include #include #include IplImage* image2 = 0; IplImage* dst = 0; int main(int argc, char *argv[]) { const char *filename = argc == 2 ? argv[1] : "C:\deva.jpg"; image2 = cvLoadImage(filename, 1); dst = cvCloneImage(image2); std::cout << "[i] image: %s\n" << filename; assert( dst != 0 ); cvNamedWindow("original", CV_WINDOW_AUTOSIZE); cvNamedWindow("smouth", CV_WINDOW_AUTOSIZE); cvSmooth(image2, dst, CV_GAUSSIAN, 3, 3); //THIS ERROR - - - - - - - cvShowImage("original", dst); cvShowImage("smouth", image2); cvWaitKey(0); cvReleaseImage(& image2); cvReleaseImage(& dst); cvDestroyWindow("original"); cvDestroyWindow("smouth"); return 0; }

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>