【发布时间】:2012-12-06 08:33:27
【问题描述】:
我一直在使用 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)
这个错误看起来有点眼熟,但我无法确定是哪里出了问题。
【问题讨论】:
标签: xcode macos opencv compiler-errors