解決 /kaldi-trunk/tools 目錄下make安裝報錯需要支援 ISO C++ 2011 -std=c++11 or -std=gnu++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.
解決:
用vi開啟在執行命令make 所在目錄下的 Makefile檔案
vi Makefile
然後在檔案中 搜尋 CXXFLAGS 找到
# Add the -O flag to CXXFLAGS on cygwin as it can fix the compilation error
在找到的這行註釋下面新增下面三行內容
# Add the -O flag to CXXFLAGS on cygwin as it can fix the compilation error
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
如圖:
儲存退出,再次 make 不再報上面錯誤了。
相關文章
- c++11:std::boolalpha、std::noboolalphaC++
- C++11 std::bind std::function 高階用法C++Function
- c++11:std::bindC++
- c++11:std::is_sameC++
- (C++11/14/17學習筆記):std::atomic續、std::async與std::thread對比C++筆記thread
- 透徹理解C++11新特性:右值引用、std::move、std::forwardC++Forward
- C++/C++11中std numeric limits的使用C++MIT
- 【C++併發實戰】(三) std::future和std::promiseC++Promise
- C++ 標準庫 std::set std::multiset swap()的使用C++
- c++ std::vector 切記C++
- C++11中std::move、std::forward、左右值引用、移動建構函式的測試C++Forward函式
- std::unique_ptr使用incomplete type的報錯分析和解決
- C++中std::allocator的使用C++
- std::vector 和 std::list 區別
- std::reserve和std::resize的區別
- C++ STL:std::unorderd_map 物理結構詳解C++
- C++語言中std::array的神奇用法總結,你需要知道!C++
- vmware安裝VMware Tools,並設定共享目錄
- 詭異!std::bind in std::bind 編譯失敗編譯
- C++,std::shared_future的使用C++
- std::sort 錯誤"Expression : invalid operator <"Express
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas
- std::numeric_limits::max() std::numeric_limits::min()編譯錯誤MIT編譯
- 【C++】【原始碼解讀】std::is_same函式原始碼解讀C++原始碼函式
- libtorch使用model.forward報std::runtime_error錯誤ForwardError
- C++霧中風景16:std::make_index_sequence, 來試一試新的黑魔法吧C++Index
- 安裝sass報錯解決方案
- C++11併發程式設計:多執行緒std::threadC++程式設計執行緒thread
- ODRDMS_GOV_STDGo
- std::count 函式函式
- 關於安裝 node-Sass 報錯的解決記錄
- C++ folly庫解讀(三)Synchronized —— 比std::lock_guard/std::unique_lock更易用、功能更強大的同步機制C++synchronized
- c++11 執行緒間同步---利用std::condition_variable實現C++執行緒
- Laravel安裝horizon報錯解決方案Laravel
- mac Pro 安裝scrapy報錯解決Mac
- win安裝wordcloud報錯解決方案Cloud
- C++ folly庫解讀(二) small_vector —— 小資料集下的std::vector替代方案C++
- gevent安裝錯誤解決方案:Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"ROSC++UI