caffe error: #error This file requires compiler and library support for the ISO C++ 2011 standard
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler op
caffe c++11編譯問題
問題:error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
解決:修改Makefile文件
CXXFLAGS += -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS) -std=c++11
NVCCFLAGS += -D_FORCE_INLINES -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS) -std=c++11
LINKFLAGS += -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS) -std=c++11
總結(jié)
以上是生活随笔為你收集整理的caffe error: #error This file requires compiler and library support for the ISO C++ 2011 standard的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: gcc版本降级/升级
- 下一篇: vs2015+opencv3.4安装及问