Hello,
i want to work with a C++ project using Caffe. I have installed all libraries required by Caffe now, but I get still warnings and errors while compiling the project. The error seems to be caused by the file include/caffe/proto/caffe.pb
.
Here the error messages occuring by compiling the project using Qt:
In file included from C:\Libraries\Caffe\build\include\caffe\blob.hpp:9:0, [C:\Libraries\Caffe\build\include\caffe\blob.hpp:9:]
from C:\Libraries\Caffe\build\include\caffe\caffe.hpp:7, [C:\Libraries\Caffe\build\include\caffe\caffe.hpp:7:]
from ..\MyCaffeProject\main.cpp:3: [D:\Files\Projects\MyCaffeProject\main.cpp:3:]
Error: expected unqualified-id before '=' token [C:\Libraries\Caffe\build\include\caffe\proto\caffe.pb.h:2734:]
static const DimCheckMode STRICT = ParamSpec_DimCheckMode_STRICT;
^
Error: expected unqualified-id before '=' token [C:\Libraries\Caffe\build\include\caffe\proto\caffe.pb.h:10273:]
static const DimCheckMode STRICT = V1LayerParameter_DimCheckMode_STRICT;
I have following environment:
- Windows 10
- Qt 5.10.1
- MinGW 5.3.0
Libraries:
- Caffe (Windows)
- OpenCV 3.4.1
- Boost 1.66.0
- Cuda 9.1
- gflags
- glog 0.3.5
- protobuf 3.1.0 (this version matches with my caffe build)
- OpenBLAS 0.2.19
Do you have any idea how to fix these errors?
Thank you for helping!