我的问题是:我在C语言中使用了cvCvtColor()
。但编译结果是:
/usr/bin/ld: /tmp/ccEXHoUI.o: undefined reference to symbol 'cvCvtColor'
/usr/bin/ld: note: 'cvCvColor' is defined in DSO /usr/lib/libopencv_imgproc.so.2.3
so try adding it to the linker command line /usr/lib/libopencv_imgproc.so.2.3:
could not read symbols: Invalid operation collect2: ld returned 1 exit status
这是什么意思?