OpenCV3.4.5带GPU编译error: #error This file requires compiler and library support for the ISO C++ 2011
生活随笔
收集整理的這篇文章主要介紹了
OpenCV3.4.5带GPU编译error: #error This file requires compiler and library support for the ISO C++ 2011
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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————————————————
總結
以上是生活随笔為你收集整理的OpenCV3.4.5带GPU编译error: #error This file requires compiler and library support for the ISO C++ 2011的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么电脑win7开机显示准备配置,可是
- 下一篇: 电脑一直是准备配置Windows请勿关闭