Closed Li-Lai closed 6 years ago
You will meet following error message:
src/caffe/util/io.cpp: In function ‘bool caffe::ReadProtoFromBinaryFile(const char, google::protobuf::Message)’: src/caffe/util/io.cpp:62:36: error: ‘O_BINARY’ was not declared in this scope int fd = open(filename, O_RDONLY|O_BINARY); ^ Makefile:572: recipe for target '.build_release/src/caffe/util/io.o' failed make: *** [.build_release/src/caffe/util/io.o] Error 1
In Linux, O_BINARY is not defined!
In Linux, you should change line to below: int fd = open(filename, O_RDONLY);
@HKLee2040 @ersanliqiao Thanks for your help. I will try your opinion.
Can I switch to Linux platform training and using?