编译 caffe 时出错(未定义对 'caffe::D ecodeDatumNative(caffe::D atum*)'的引用)

Error when i compile caffe(undefined reference to `caffe::DecodeDatumNative(caffe::Datum*)')

本文关键字:caffe 引用 atum ecodeDatumNative 编译 未定义 出错      更新时间:2023-10-16

当我在ubuntu14.04上使用sudo make all命令时,我得到以下错误

.build_debug/tools/compute_image_mean.o: In function `main':
compute_image_mean.cpp:56:undefined reference to `caffe::DecodeDatumNative(caffe::Datum*)'
谁能告诉我我该怎么做,为什么会发生这种情况?

搜索相同问题的人:
尝试删除/usr/lib, /usr/local/lib中的旧caffe文件
https://github.com/BVLC/caffe/issues/2228
https://github.com/BVLC/caffe/issues/3396