Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv C++ compilation error anonymous namespace ::hlineResize

I have Opencv 3.4.3 installed on my Raspberry Pi. When I try to compile a simple C++ script with "g++ -std=c++0x -o runnable removeRedEyes.cpp pkg-config --libs --cflags opencv" it throws me the error given below. Opencv built succesfully without error. What woulde be the cause?

Thanks.

/usr/local/lib/libopencv_imgproc.so: undefined reference to void (anonymous namespace)::hlineResize<unsigned char, (anonymous namespace)::ufixedpoint16, 2, false>(unsigned char*, int, int*, (anonymous namespace)::ufixedpoint16*, (anonymous namespace)::ufixedpoint16*, int, int, int)' /usr/local/lib/libopencv_imgproc.so: undefined reference tovoid (anonymous namespace)::hlineResize<signed char,="" (anonymous="" namespace)::fixedpoint32,="" 2,="" false="">(signed char, int, int, (anonymous namespace)::fixedpoint32, (anonymous namespace)::fixedpoint32, int, int, int)' /usr/local/lib/libopencv_imgproc.so: undefined reference to void (anonymous namespace)::hlineResizeCn<unsigned short, (anonymous namespace)::ufixedpoint32, 2, true, 4>(unsigned short*, int, int*, (anonymous namespace)::ufixedpoint32*, (anonymous namespace)::ufixedpoint32*, int, int, int)' /usr/local/lib/libopencv_imgproc.so: undefined reference tovoid (anonymous namespace)::hlineResizeCn<int, (anonymous="" namespace)::fixedpoint64,="" 2,="" true,="" 3="">(int, int, int, (anonymous namespace)::fixedpoint64, (anonymous namespace)::fixedpoint64, int, int, int)' collect2: ld returned 1 exit status