/usr/bin/ld: main.o: undefined reference to symbol '_ZN2cv6imreadERKSsi'
//usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4: error adding symbols: DSO missing from command line
//usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
在makefile 里面添加 -lopencvhighgui
就ok了
本文介绍了解决在编译过程中遇到的与_opencv_highgui相关的链接错误的方法。通过在makefile中添加正确的库链接选项,可以有效地解决此类问题。
7707

被折叠的 条评论
为什么被折叠?



