赞
踩
错误信息:
/tmp/cc9yZhef.o: In function `cv::Mat::~Mat()':
main.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference to `cv::fastFree(void*)'collect2: error: ld returned 1 exit status
排查错误:
# g++ main.cpp `pkg-config opencv --libs --cflags opencv`
出现:
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
Package opencv was not found in the pkg-config search path.
Perhaps you should add the dir
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。