In file included from src/caffe/blob.cpp:4:
./include/caffe/blob.hpp:53: error: ISO C++ forbids declaration of ‘BlobShape’ with no type
./include/caffe/blob.hpp:53: error: expected ‘,’ or ‘...’ before ‘&’ token
src/caffe/blob.cpp:46: error: ISO C++ forbids declaration of ‘BlobShape’ with no type
src/caffe/blob.cpp:46: error: expected ‘,’ or ‘...’ before ‘&’ token
src/caffe/blob.cpp: In member function ‘bool caffe::Blob<Dtype>::ShapeEquals(const caffe::BlobProto&)’:
src/caffe/blob.cpp:405: error: ‘const class caffe::BlobProto’ has no member named ‘shape’
src/caffe/blob.cpp:406: error: ‘const class caffe::BlobProto’ has no member named ‘shape’
src/caffe/blob.cpp:407: error: ‘const class caffe::BlobProto’ has no member named ‘shape’
src/caffe/blob.cpp: In member function ‘void caffe::Blob<Dtype>::FromProto(const caffe::BlobProto&, bool)’:
src/caffe/blob.cpp:459: error: ‘const class caffe::BlobProto’ has no member named ‘shape’
src/caffe/blob.cpp:460: error: ‘const class caffe::BlobProto’ has no member named ‘shape’
src/caffe/blob.cpp:461: error: ‘const class caffe::BlobProto’ has no member named ‘shape’
src/caffe/blob.cpp:470: error: ‘const class caffe::BlobProto’ has no member named ‘double_data_size’
src/caffe/blob.cpp:471: error: ‘const class caffe::BlobProto’ has no member named ‘double_data_size’
src/caffe/blob.cpp:473: error: ‘const class caffe::BlobProto’ has no member named ‘double_data’
src/caffe/blob.cpp:481: error: ‘const class caffe::BlobProto’ has no member named ‘double_diff_size’
src/caffe/blob.cpp:482: error: ‘const class caffe::BlobProto’ has no member named ‘double_diff_size’
src/caffe/blob.cpp:485: error: ‘const class caffe::BlobProto’ has no member named ‘double_diff’
src/caffe/blob.cpp: In member function ‘void caffe::Blob<Dtype>::ToProto(caffe::BlobProto*, bool) const [with Dtype = double]’:
src/caffe/blob.cpp:498: error: ‘class caffe::BlobProto’ has no member named ‘clear_shape’
src/caffe/blob.cpp:500: error: ‘class caffe::BlobProto’ has no member named ‘mutable_shape’
src/caffe/blob.cpp:502: error: ‘class caffe::BlobProto’ has no member named ‘clear_double_data’
src/caffe/blob.cpp:503: error: ‘class caffe::BlobProto’ has no member named ‘clear_double_diff’
src/caffe/blob.cpp:506: error: ‘class caffe::BlobProto’ has no member named ‘add_double_data’
src/caffe/blob.cpp:511: error: ‘class caffe::BlobProto’ has no member named ‘add_double_diff’
src/caffe/blob.cpp: In member function ‘void caffe::Blob<Dtype>::ToProto(caffe::BlobProto*, bool) const [with Dtype = float]’:
src/caffe/blob.cpp:518: error: ‘class caffe::BlobProto’ has no member named ‘clear_shape’
src/caffe/blob.cpp:520: error: ‘class caffe::BlobProto’ has no member named ‘mutable_shape’
src/caffe/blob.cpp: In member function ‘void caffe::Blob<Dtype>::Reshape(int) [with Dtype = float]’:
src/caffe/blob.cpp:536: instantiated from here
src/caffe/blob.cpp:47: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:48: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:49: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:50: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp: In member function ‘void caffe::Blob<Dtype>::Reshape(int) [with Dtype = double]’:
src/caffe/blob.cpp:536: instantiated from here
src/caffe/blob.cpp:47: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:48: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:49: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:50: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp: In member function ‘void caffe::Blob<Dtype>::Reshape(int) [with Dtype = int]’:
src/caffe/blob.cpp:537: instantiated from here
src/caffe/blob.cpp:47: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:48: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:49: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:50: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp: In member function ‘void caffe::Blob<Dtype>::Reshape(int) [with Dtype = unsigned int]’:
src/caffe/blob.cpp:538: instantiated from here
src/caffe/blob.cpp:47: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:48: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:49: error: invalid use of member (did you forget the ‘&’ ?)
src/caffe/blob.cpp:50: error: invalid use of member (did you forget the ‘&’ ?)
make: *** [.build_release/src/caffe/blob.o] Error 1
I receive the error when I run 'make all'. Can someone please explain why this is? I looked at a previous post that said having an older caffe.ph.b file may cause an error but I don't have that file.
Thank you so much for your help!
Jing.