error: #error This file requires compiler and library support for the ISO C++ 2011 standard.

zxyhhjs2017發表於2019-03-18

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
---------------------  
作者:AllyLi0022  
來源:CSDN  
原文:https://blog.csdn.net/Allyli0022/article/details/86691392  
版權宣告:本文為博主原創文章,轉載請附上博文連結!

相關文章