level 3
明20152014
楼主
在使用运行opencv读取图像程序时遇到undefined reference的错误。
错误内容:
C:\Users\ADMINI~1\AppData\Local\Temp\cc3lP7Go.omain.cpp:(.text+0x53): undefined reference to `cv::imread(std::string const&, int)'
C:\Users\ADMINI~1\AppData\Local\Temp\cc3lP7Go.omain.cpp:(.text$_ZN2cv3MatD1Ev[_ZN2cv3MatD1Ev]+0x36): undefined reference to `cv::fastFree(void*)'
C:\Users\ADMINI~1\AppData\Local\Temp\cc3lP7Go.omain.cpp:(.text$_ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x48): undefined reference to `cv::Mat::deallocate()'
H:\multi_view\DEV_C_PROJECT\collect2.exe[Error] ld returned 1 exit status
PROJECT OPTIONS里已经加入了parameters里的linker:

且在路径里已加入lib路径

2019年12月30日 05点12分
1
错误内容:
C:\Users\ADMINI~1\AppData\Local\Temp\cc3lP7Go.omain.cpp:(.text+0x53): undefined reference to `cv::imread(std::string const&, int)'
C:\Users\ADMINI~1\AppData\Local\Temp\cc3lP7Go.omain.cpp:(.text$_ZN2cv3MatD1Ev[_ZN2cv3MatD1Ev]+0x36): undefined reference to `cv::fastFree(void*)'
C:\Users\ADMINI~1\AppData\Local\Temp\cc3lP7Go.omain.cpp:(.text$_ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x48): undefined reference to `cv::Mat::deallocate()'
H:\multi_view\DEV_C_PROJECT\collect2.exe[Error] ld returned 1 exit status
PROJECT OPTIONS里已经加入了parameters里的linker:

且在路径里已加入lib路径