BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
33.98k stars 18.72k forks source link

caffe make all error #6920

Open cmi8 opened 4 years ago

cmi8 commented 4 years ago

/Users/Documents/caffe/caffe/include/caffe/common.hpp:197:2: error:

endif without #if

endif // CAFFE_COMMONHPP

^ In file included from /Users/Documents/caffe/caffe/src/caffe/blob.cpp:4: In file included from /Users/Documents/caffe/caffe/include/caffe/blob.hpp:10: In file included from /Users/Documents/caffe/caffe/include/caffe/syncedmem.hpp:10: /Users/Documents/caffe/caffe/include/caffe/common.hpp:106:7: error: redefinition of 'Caffe' class Caffe { ^ /Users/Documents/caffe/caffe/include/caffe/blob.hpp:8:10: note: '/Users/Documents/caffe/caffe/include/caffe/common.hpp' included multiple times, additional include site here

include "caffe/common.hpp"

     ^

python 3.7 on macbook OS Mojave doing CPU_ONLY install. Please help

seanxzhan commented 4 years ago

I have the same problem. Have you solved it?

mobai-ch commented 3 years ago

ifndef and #endif is not match, delete the error #endif before class Caffe and make the number of #ifndef #endif balance.