对不起...我早期使用的是xcode 4.4.1和macbook pro 2011,它在osx lion 64位上运行...
我在编译时收到以下错误...
Undefined symbols for architecture i386:
"_gzclose", referenced from:
_cvReleaseFileStorage in OpenCV(persistence.o)
_cvOpenFileStorage in OpenCV(persistence.o)
"_gzeof", referenced from:
__ZL6icvEofP13CvFileStorage in OpenCV(persistence.o)
"_gzgets", referenced from:
__ZL7icvGetsP13CvFileStoragePci in OpenCV(persistence.o)
"_gzopen", referenced from:
_cvOpenFileStorage in OpenCV(persistence.o)
"_gzputs", referenced from:
__ZL7icvPutsP13CvFileStoragePKc in OpenCV(persistence.o)
"_gzrewind", referenced from:
_cvOpenFileStorage in OpenCV(persistence.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
当我声明cv::mat
..(如果我删除它..它将正确编译..)时发生了这种情况,有人知道如何解决这个问题吗?谢谢..