我一直在使用 OpenCV 以及该imwrite
功能,但不幸的是,这不再起作用了。
我正在使用 OpenCV 2.4.3 运行以下示例代码:
imwrite("somepath/somefile.png", myMat);
错误:
Undefined symbols for architecture x86_64:
"cv::imwrite(std::string const&, cv::_InputArray const&, std::__debug::vector<int, std::allocator<int> > const&)", referenced from:
MyProject::this_callback(int, void*) in MyProject.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
该错误看起来有些熟悉,但我无法确定出了什么问题。