对不起......我正在使用xcode 4.4.1和macbook pro 2011,这是它在osx lion 64 bit上运行...
我在编译时遇到以下错误...
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
时发生了这种情况....(如果我删除它......它将正确编译..)
有人知道怎么修这个东西吗? THX ..