facebookarchive / caffe2

Caffe2 is a lightweight, modular, and scalable deep learning framework.
https://caffe2.ai
Apache License 2.0
8.42k stars 1.95k forks source link

187 errors building caffe2 #2029

Closed LaurentBerger closed 6 years ago

LaurentBerger commented 6 years ago

System information

Windows 10 64 bits MSVC 2017 version 15.5.4 CMake version: 3.10..2 CMake arguments:

CMAKE_CONFIG_GENERATOR="Visual Studio 15 2017 Win64"
RepoSource=Caffe2
RepoBuild=Caffe2
installDepen=G:/Lib/install
pushd Build/$RepoBuild
CMAKE_OPTIONS=''
cmake -G"$CMAKE_CONFIG_GENERATOR"  -DBUILD_SHARED_LIBS:BOOL=OFF \
-DPYTHON_EXECUTABLE=c:/programdata/anaconda3/python.exe \
-DEigen3_DIR=G:/Lib/install/Eigen3/share/eigen3/cmake \
-DBLAS:STRING=MKL \
-DHDF5_CXX_INCLUDE_DIR:PATH="$installDepen"/HDF5/include \
-DHDF5_C_COMPILER_EXECUTABLE:FILEPATH="$installDepen"/HDF5/bin/h5jam.exe \
-DHDF5_DIFF_EXECUTABLE:FILEPATH="$installDepen"/HDF5/bin/h5diff.exe \
-DHDF5_DIR:PATH="$installDepen"/HDF5/cmake/ \
-DHDF5_IS_PARALLEL:BOOL=OFF \
-DHDF5_hdf5_LIBRARY_DEBUG:FILEPATH="$installDepen"/HDF5/lib/hdf5_D.lib \
-DHDF5_hdf5_LIBRARY_RELEASE:FILEPATH="$installDepen"/HDF5/lib/hdf5.lib \
-DHDF5_hdf5_cpp_LIBRARY_DEBUG:FILEPATH="$installDepen"/HDF5/lib/hdf5_cpp.lib \
-DHDF5_hdf5_cpp_LIBRARY_RELEASE:FILEPATH="$installDepen"/HDF5/lib/hdf5_cpp_D.lib \
-DHDF5_hdf5_hl_LIBRARY_DEBUG:FILEPATH="$installDepen"/HDF5/lib/hdf5_hl_D.lib \
-DHDF5_hdf5_hl_LIBRARY_RELEASE:FILEPATH="$installDepen"/HDF5/lib/hdf5_hl_D.lib \
-DHDF5_hdf5_hl_cpp_LIBRARY_DEBUG:FILEPATH="$installDepen"/HDF5/lib/hdf5_hl_cpp_D.lib \
-DHDF5_hdf5_hl_cpp_LIBRARY_RELEASE:FILEPATH="$installDepen"/HDF5/lib/hdf5_hl_cpp.lib \
-DProtobuf_INCLUDE_DIR:PATH="${myRepo}"/Install/Protobuf/include -DProtobuf_SRC_ROOT_FOLDER:PATH="${myRepo}"/Install/Protobuf/cmake \
-DHDF5_INCLUDE_DIRS:PATH="${myRepo}"/Install/HDF5/include -DHDF5_SRC_ROOT_FOLDER:PATH="${myRepo}"/Install/HDF5/cmake \
-DProtobuf_INCLUDE_DIR:PATH="${myRepo}"/Install/Protobuf/include -DProtobuf_SRC_ROOT_FOLDER:PATH="${myRepo}"/Install/Protobuf/cmake \
-Dprotobuf_MODULE_COMPATIBLE:BOOL=ON \
-DProtobuf_LIBRARY_DEBUG:FILE="$installDepen"/protobuf/lib/libprotobufd.lib -DProtobuf_LIBRARY_RELEASE:FILE="$installDepen"/protobuf/lib/libprotobuf.lib \
-DProtobuf_LITE_LIBRARY_DEBUG:FILE="$installDepen"/protobuf/lib/libprotobufd.lib -DProtobuf_LITE_LIBRARY_RELEASE:FILE="$installDepen"/protobuf/lib/libprotobuf-lited.lib \
-DProtobuf_PROTOC_LIBRARY_DEBUG:FILE="$installDepen"/protobuf/lib/libprotocd.lib -DProtobuf_PROTOC_LIBRARY_RELEASE:FILE="$installDepen"/protobuf/lib/libprotoc.lib \
-DPROTOBUF_PROTOC_EXECUTABLE:FILE="$installDepen"/protobuf/bin/protoc.exe \
-DHDF5_INCLUDE_DIRS:PATH="${myRepo}"/Install/HDF5/include -DHDF5_SRC_ROOT_FOLDER:PATH="${myRepo}"/Install/HDF5/cmake \
-DHDF5_ROOT_DIR:PATH="${myRepo}"/Install/HDF5/cmake \
-Dglog_DIR:PATH="$myRepo"/install/glog/lib/cmake/glog -Dgflags_DIR:PATH="$myRepo"/install/gflags/lib/cmake/gflags \
-DGLOG_ROOT_DIR:PATH="$myRepo"/install/glog/lib/cmake/glog -DGFLAGS_ROOT_DIR:PATH="$myRepo"/install/gflags/lib/cmake/gflags \
-DGLOG_LIBRARY_DEBUG:FILE="$myRepo"/install/glog/lib/glogd.lib -DGLOG_LIBRARY_RELEASE:FILE="$myRepo"/install/glog/lib/glog.lib \
-DGLOG_INCLUDE_DIR:PATH="$myRepo"/install/glog/include -DGFLAGS_INCLUDE_DIR:PATH="$myRepo"/install/gflags/include \
-DProtobuf_DIR:PATH="${myRepo}"/Install/Protobuf/include -DProtobuf_DIR:PATH="${myRepo}"/Install/Protobuf/cmake \
-DMKL_ROOT_DIR:PATH="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl" \
-DMKL_USE_SINGLE_DYNAMIC_LIBRARY:PATH:BOOL=OFF \
-DMKL_INCLUDE_DIR:PATH="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/include" \
-DMKL_INTEL_LP64_LIBRARY:FILEPATH="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_intel_lp64.lib" \
-DMKL_SEQUENTIAL:FILEPATH="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_sequential.lib" \
-DMKL_GF_LP64_LIBRARY:FILEPATH="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_core.lib" \
-DMKL_CORE_LIBRARY:FILEPATH="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_core.lib" \
-DMKL_INTEL_THREAD_LIBRARY="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_intel_thread_dll.lib" \
-DMKL_RTL_LIBRARY="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_rt.lib" \
-DMKL_CDFT_CORE_LIBRARY="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_rt.lib" \
-DMKL_ROOT_DIR:PATH="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl" \
-DOpenCV_DIR="$myRepo"/install/opencv \
-DZLIB_LIBRARY:FILEPATH="$myRepo"/install/zlib/lib/zlibstatic.lib -DZLIB_INCLUDE_DIR:PATH="$myRepo"/install/zlib/include \
-DINTEL_INCLUDE_DIR="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows" \
$CMAKE_OPTIONS   -DCMAKE_INSTALL_PREFIX=../../install/"$RepoSource" ../../"$RepoSource"

When I build caffe2 I have got 187 errors :

10>mklmemory_serialization.cc
10>concat_op.cc
10>conv_op_mkldnn.cc
10>operator_fallback_mkl.cc
5>Generating Code...
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): error C2079: 'TableStruct' uses undefined struct 'protobuf_caffe_2fproto_2fcaffe_2eproto::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(38): error C2062: type 'const google::protobuf::internal::ParseTableField' unexpected (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(39): error C2133: 'protobuf_caffe_2fproto_2fcaffe_2eproto::aux': unknown size (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(41): error C2133: 'protobuf_caffe_2fproto_2fcaffe_2eproto::field_metadata': unknown size (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(42): error C2133: 'protobuf_caffe_2fproto_2fcaffe_2eproto::serialization_table': unknown size (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(43): error C2133: 'protobuf_caffe_2fproto_2fcaffe_2eproto::offsets': unknown size (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): error C2146: syntax error: missing ';' before identifier 'AddDescriptors' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(46): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(46): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(46): error C2146: syntax error: missing ';' before identifier 'InitDefaultsBlobShapeImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(47): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(47): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(47): error C2146: syntax error: missing ';' before identifier 'InitDefaultsBlobShape' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(47): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(48): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(48): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(48): error C2146: syntax error: missing ';' before identifier 'InitDefaultsBlobProtoImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(48): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(49): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(49): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(49): error C2146: syntax error: missing ';' before identifier 'InitDefaultsBlobProto' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(49): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(50): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(50): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(50): error C2146: syntax error: missing ';' before identifier 'InitDefaultsBlobProtoVectorImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(50): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(51): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(51): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(51): error C2146: syntax error: missing ';' before identifier 'InitDefaultsBlobProtoVector' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(51): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(52): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(52): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(52): error C2146: syntax error: missing ';' before identifier 'InitDefaultsDatumImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(52): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(53): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(53): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(53): error C2146: syntax error: missing ';' before identifier 'InitDefaultsDatum' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(53): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(54): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(54): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(54): error C2146: syntax error: missing ';' before identifier 'InitDefaultsFillerParameterImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(55): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(55): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(55): error C2146: syntax error: missing ';' before identifier 'InitDefaultsFillerParameter' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(56): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(56): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(56): error C2146: syntax error: missing ';' before identifier 'InitDefaultsNetParameterImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(56): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(57): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(57): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(57): error C2146: syntax error: missing ';' before identifier 'InitDefaultsNetParameter' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(57): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(58): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(58): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(58): error C2146: syntax error: missing ';' before identifier 'InitDefaultsSolverParameterImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(58): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(59): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(59): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(59): error C2146: syntax error: missing ';' before identifier 'InitDefaultsSolverParameter' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(60): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(60): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(60): error C2146: syntax error: missing ';' before identifier 'InitDefaultsSolverStateImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(60): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(61): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(61): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(61): error C2146: syntax error: missing ';' before identifier 'InitDefaultsSolverState' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(61): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(62): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(62): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(62): error C2146: syntax error: missing ';' before identifier 'InitDefaultsNetStateImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(62): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(63): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(63): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(63): error C2146: syntax error: missing ';' before identifier 'InitDefaultsNetState' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(63): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(64): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(64): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(64): error C2146: syntax error: missing ';' before identifier 'InitDefaultsNetStateRuleImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(65): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(65): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(65): error C2146: syntax error: missing ';' before identifier 'InitDefaultsNetStateRule' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(65): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(66): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(66): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(66): error C2146: syntax error: missing ';' before identifier 'InitDefaultsParamSpecImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(66): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(67): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(67): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(67): error C2146: syntax error: missing ';' before identifier 'InitDefaultsParamSpec' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(67): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(68): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(68): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(68): error C2146: syntax error: missing ';' before identifier 'InitDefaultsLayerParameterImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(69): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(69): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(69): error C2146: syntax error: missing ';' before identifier 'InitDefaultsLayerParameter' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(69): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(70): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(70): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(70): error C2146: syntax error: missing ';' before identifier 'InitDefaultsTransformationParameterImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(71): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(71): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(71): error C2146: syntax error: missing ';' before identifier 'InitDefaultsTransformationParameter' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(71): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(72): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(72): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(72): error C2146: syntax error: missing ';' before identifier 'InitDefaultsLossParameterImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(72): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(73): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(73): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(73): error C2146: syntax error: missing ';' before identifier 'InitDefaultsLossParameter' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(73): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(74): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(74): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(74): error C2146: syntax error: missing ';' before identifier 'InitDefaultsAccuracyParameterImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(74): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(75): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(75): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(75): error C2146: syntax error: missing ';' before identifier 'InitDefaultsAccuracyParameter' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(75): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(76): error C2182: 'CAFFE2_API': illegal use of type 'void' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(76): error C2086: 'int CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(45): note: see declaration of 'CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(76): error C2146: syntax error: missing ';' before identifier 'InitDefaultsArgMaxParameterImpl' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
10>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(76): fatal error C1003: error count exceeds 100; stopping compilation (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)

Relevant libraries/versions (e.g. CUDA): No cuda CMake output :

-- Need to define long as a separate typeid.
-- Current compiler supports avx2 extention. Will build perfkernels.
CMake Warning (dev) at cmake/MiscCheck.cmake:108 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  CMakeLists.txt:73 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at G:/Lib/install/protobuf/cmake/protobuf-module.cmake:82 (message):
  Variable Protobuf_SRC_ROOT_FOLDER defined, but not used in CONFIG mode
Call Stack (most recent call first):
  G:/Lib/install/protobuf/cmake/protobuf-config.cmake:122 (include)
  cmake/public/protobuf.cmake:4 (find_package)
  cmake/ProtoBuf.cmake:53 (include)
  cmake/Dependencies.cmake:8 (include)
  CMakeLists.txt:90 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Caffe2: Found protobuf with new-style protobuf targets.
-- Caffe2 protobuf include directory: G:/Lib/install/protobuf/include
-- The BLAS backend of choice:MKL
-- Found MKL (include: C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/include, lib: C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_intel_lp64.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_intel_thread_dll.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_core.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_rt.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_rt.lib
-- Could NOT find NNPACK (missing: NNPACK_INCLUDE_DIR NNPACK_LIBRARY PTHREADPOOL_LIBRARY CPUINFO_LIBRARY)
CMake Warning at cmake/External/nnpack.cmake:29 (message):
  NNPACK not supported on MSVC yet.  Turn this warning off by USE_NNPACK=OFF.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:71 (include)
  CMakeLists.txt:90 (include)

CMake Warning at cmake/Dependencies.cmake:80 (message):
  Not compiling with NNPACK.  Suppress this warning with -DUSE_NNPACK=OFF
Call Stack (most recent call first):
  CMakeLists.txt:90 (include)

-- Caffe2: Found gflags with new-style gflags target.
-- Caffe2: Found glog with new-style glog target.
-- Found PythonInterp: C:/ProgramData/Anaconda3/python.exe (found version "3.6.2")
-- git Version: v0.0.0
-- Version: 0.0.0
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Could NOT find RocksDB (missing: RocksDB_INCLUDE_DIR RocksDB_LIBRARIES)
CMake Warning at cmake/Dependencies.cmake:195 (message):
  Not compiling with RocksDB.  Suppress this warning with -DUSE_ROCKSDB=OFF
Call Stack (most recent call first):
  CMakeLists.txt:90 (include)

-- OpenCV found (G:/Lib/install/opencv/x64/vc15/lib)
-- Found system Eigen at G:/Lib/install/Eigen3/include/eigen3
-- Found PythonInterp: C:/ProgramData/Anaconda3/python.exe (found suitable version "3.6.2", minimum required is "2.7")
-- Found PythonLibs: C:/ProgramData/Anaconda3/libs/python36.lib (found suitable version "3.6.2", minimum required is "2.7")
-- Found NumPy: C:/Users/Laurent.PC-LAURENT-VISI/AppData/Roaming/Python/Python36/site-packages/numpy/core/include (found version "1.14.0")
-- NumPy ver. 1.14.0 found (include: C:/Users/Laurent.PC-LAURENT-VISI/AppData/Roaming/Python/Python36/site-packages/numpy/core/include)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
CMake Warning at cmake/Dependencies.cmake:318 (message):
  Not compiling with MPI.  Suppress this warning with -DUSE_MPI=OFF
Call Stack (most recent call first):
  CMakeLists.txt:90 (include)

-- Found CUDA: F:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1 (found suitable version "9.1", minimum required is "7.0")
-- Could NOT find CUDNN (missing: CUDNN_INCLUDE_DIR CUDNN_LIBRARY)
CMake Warning at cmake/public/cuda.cmake:28 (message):
  Caffe2: cudnn cannot be found.  Caffe2 CUDA depends explicitly on cudnn so
  you should consider installing it.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:345 (include)
  CMakeLists.txt:90 (include)

CMake Warning at cmake/Dependencies.cmake:347 (message):
  Not compiling with CUDA.  Suppress this warning with -DUSE_CUDA=OFF.
Call Stack (most recent call first):
  CMakeLists.txt:90 (include)

CMake Warning at cmake/Dependencies.cmake:382 (message):
  Gloo can only be used on Linux.
Call Stack (most recent call first):
  CMakeLists.txt:90 (include)

CMake Warning at cmake/Dependencies.cmake:442 (message):
  mobile opengl is only used in android or ios builds.
Call Stack (most recent call first):
  CMakeLists.txt:90 (include)

CMake Warning at cmake/Dependencies.cmake:462 (message):
  Metal is only used in ios builds.
Call Stack (most recent call first):
  CMakeLists.txt:90 (include)

-- NCCL operators skipped due to no CUDA support
-- CUDA RTC operators skipped due to no CUDA support
-- Including image processing operators
-- Excluding video processing operators due to no opencv
-- Including MKL operators
-- MPI operators skipped due to no MPI support
-- Include Observer library
CMake Warning (dev) at cmake/Utils.cmake:176 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  cmake/Utils.cmake:193 (caffe_add_whole_archive_flag)
  caffe2/CMakeLists.txt:104 (caffe_add_linker_flag)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Using Lib\site-packages as python relative installation path
-- Automatically generating missing __init__.py files.
--
-- ******** Summary ********
-- General:
--   CMake version         : 3.10.2
--   CMake command         : C:/Program Files/CMake/bin/cmake.exe
--   Git version           : v0.8.1-1147-gdb0a8120c-dirty
--   System                : Windows
--   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64/cl.exe
--   C++ compiler version  : 19.12.25834.0
--   Protobuf compiler     : G:/Lib/install/protobuf/bin/protoc.exe
--   Protobuf include path : G:/Lib/install/protobuf/include
--   Protobuf libraries    : optimized;G:/Lib/install/protobuf/lib/libprotobuf.lib;debug;G:/Lib/install/protobuf/lib/libprotobufd.lib
--   BLAS                  : MKL
--   CXX flags             : /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MP /bigobj
--   Build type            : Release
--   Compile definitions   :
--
--   BUILD_BINARY          : ON
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : ON
--     Python version      : 3.6.2
--     Python library      : C:/ProgramData/Anaconda3/libs/python36.lib
--   BUILD_SHARED_LIBS     : OFF
--   BUILD_TEST            : ON
--   USE_ATEN              : OFF
--   USE_ASAN              : OFF
--   USE_CUDA              : OFF
--   USE_EIGEN_FOR_BLAS    :
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : ON
--   USE_GLOG              : ON
--   USE_GLOO              : OFF
--   USE_LEVELDB           : OFF
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : OFF
--   USE_METAL             : OFF
--   USE_MKL               : 1
--   USE_MOBILE_OPENGL     : OFF
--   USE_MPI               : OFF
--   USE_NCCL              : OFF
--   USE_NERVANA_GPU       : OFF
--   USE_NNPACK            : OFF
--   USE_OBSERVERS         : ON
--   USE_OPENCV            : ON
--     OpenCV version      : 3.4.0
--   USE_OPENMP            : OFF
--   USE_PROF              : OFF
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_THREADS           : ON
--   USE_ZMQ               : OFF
CMake Warning at CMakeLists.txt:264 (message):
  Generated cmake files are only available when building shared libs.

-- Configuring done
-- Generating done
-- Build files have been written to: G:/Lib/build/caffe2
Yangqing commented 6 years ago

Did you run with the current caffe2 master version? I think we did quite a few changes to fix the protobuf error so it might change the result at the moment.

LaurentBerger commented 6 years ago

Thanks for your answer. I update my caffe2 repo now it's even with master :

$ git log
commit 04f4b46a6f32a899823cad1549895c5293ee6bb1 (HEAD -> master, origin/master, origin/HEAD)
Author: Lu Fang <30275821+houseroad@users.noreply.github.com>
Date:   Sat Feb 24 03:51:08 2018 -0800

    Skip Cast ONNX backend test, which is not supported in Float16 case (#2005)

I update my protobuf repo (even with master). delete my cmakecache and my build folder.

I run cmake using git bash in windows (version 2.16.2.1) my cmake command are here my cmake ouput is here CMakeCache.txt In vs2017 building project caffe2 gives me 133 errors again :

errorsCaffe2.txt

Is it possible that issue is due to compiling caffe2 without CUDA ( only CPU)?

I change anaconda 3 to anaconda2 still got errors using caffe2 protobuf errors is now :

12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): error C2144: syntax error: 'caffe::AccuracyParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(40): error C2144: syntax error: 'caffe::ArgMaxParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(40): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(40): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(43): error C2144: syntax error: 'caffe::BatchNormParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(43): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(46): error C2144: syntax error: 'caffe::BiasParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(46): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(49): error C2144: syntax error: 'caffe::BlobProtoDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(49): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(49): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(52): error C2144: syntax error: 'caffe::BlobProtoVectorDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(52): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(52): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(55): error C2144: syntax error: 'caffe::BlobShapeDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(55): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(58): error C2144: syntax error: 'caffe::ConcatParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(58): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(58): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(61): error C2144: syntax error: 'caffe::ContrastiveLossParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(61): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(61): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(64): error C2144: syntax error: 'caffe::ConvolutionParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(64): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(67): error C2144: syntax error: 'caffe::CropParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(67): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(67): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(70): error C2144: syntax error: 'caffe::DataParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(70): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(73): error C2144: syntax error: 'caffe::DatumDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(73): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(73): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(76): error C2144: syntax error: 'caffe::DropoutParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(76): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(76): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(79): error C2144: syntax error: 'caffe::DummyDataParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(79): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(79): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(82): error C2144: syntax error: 'caffe::ELUParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(82): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(85): error C2144: syntax error: 'caffe::EltwiseParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(85): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(85): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(88): error C2144: syntax error: 'caffe::EmbedParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(88): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(88): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(91): error C2144: syntax error: 'caffe::ExpParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(91): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(91): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(94): error C2144: syntax error: 'caffe::FillerParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(94): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(97): error C2144: syntax error: 'caffe::FlattenParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(97): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(100): error C2144: syntax error: 'caffe::HDF5DataParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(100): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(103): error C2144: syntax error: 'caffe::HDF5OutputParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(103): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(103): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(106): error C2144: syntax error: 'caffe::HingeLossParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(106): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(109): error C2144: syntax error: 'caffe::ImageDataParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(109): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(112): error C2144: syntax error: 'caffe::InfogainLossParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(112): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(112): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(115): error C2144: syntax error: 'caffe::InnerProductParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(115): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(115): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(118): error C2144: syntax error: 'caffe::InputParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(118): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(121): error C2144: syntax error: 'caffe::LRNParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(121): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(121): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(124): error C2144: syntax error: 'caffe::LayerParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(124): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(124): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(127): error C2144: syntax error: 'caffe::LogParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(127): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(127): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(130): error C2144: syntax error: 'caffe::LossParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(130): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(130): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(133): error C2144: syntax error: 'caffe::MVNParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(133): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(133): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(136): error C2144: syntax error: 'caffe::MemoryDataParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(136): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(139): error C2144: syntax error: 'caffe::NetParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(139): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(139): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(142): error C2144: syntax error: 'caffe::NetStateDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(142): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(142): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(145): error C2144: syntax error: 'caffe::NetStateRuleDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(145): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(145): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(148): error C2144: syntax error: 'caffe::PReLUParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(148): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(148): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(151): error C2144: syntax error: 'caffe::ParamSpecDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(151): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(151): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(154): error C2144: syntax error: 'caffe::ParameterParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(154): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(154): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(157): error C2144: syntax error: 'caffe::PoolingParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(157): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(157): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(160): error C2144: syntax error: 'caffe::PowerParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(160): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(160): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(163): error C2144: syntax error: 'caffe::PythonParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(163): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(163): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(166): error C2144: syntax error: 'caffe::ReLUParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(166): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(166): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(169): error C2144: syntax error: 'caffe::RecurrentParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(169): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(169): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(172): error C2144: syntax error: 'caffe::ReductionParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(172): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(172): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(175): error C2144: syntax error: 'caffe::ReshapeParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(175): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(175): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(178): error C2144: syntax error: 'caffe::SPPParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(178): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(178): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(181): error C2144: syntax error: 'caffe::ScaleParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(181): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(181): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(184): error C2144: syntax error: 'caffe::SigmoidParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(184): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(184): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(187): error C2144: syntax error: 'caffe::SliceParameterDefaultTypeInternal' should be preceded by ';' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(187): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(187): error C2086: 'int caffe::CAFFE2_API': redefinition (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(37): note: see declaration of 'caffe::CAFFE2_API' (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
12>G:\Lib\build\caffe2\caffe/proto/caffe.pb.h(187): fatal error C1003: error count exceeds 100; stopping compilation (compiling source file G:\Lib\caffe2\caffe2\image\image_input_op.cc)
anguoyang commented 6 years ago

I have the same errors, could anyone help? thank you

LaurentBerger commented 6 years ago

@anguoyang In december I was able to build caffe2 using windows 10. Now I'm not able

wdx04 commented 6 years ago

Errors in caffe.pb.h can be fixed by adding

#include "caffe2/core/common.h"

before

#include "caffe/proto/caffe.pb.h"

In image_input_op.h

LaurentBerger commented 6 years ago

@wdx04 Thanks. It solves the problem. this issue #1671 is still not fixed. And there is a new error >LINK : fatal error LNK1104: cannot open file 'ZLIB::ZLIB.lib' but may be I will open a new issue about it. Will you make a PR about caffe.pb.h?

pjh5 commented 6 years ago

@LaurentBerger please open a new issue about the zlib library. Thanks @wdx04 for fixing this.