私はしばらく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)
エラーはやや見慣れたものに見えますが、何が悪いのか判断できません。