試圖運行我的代碼,這是包括C++文件,我碰到下面的錯誤 -AndroidStudio C++編譯器選項
Error:(32, 2) 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.
如何可以解決?這是我第一個涉及C++文件的項目。
您必須啓用 「的-std = C++ 11或-std = GNU ++ 11個的編譯器選項。」 – Asu
在Android上學習C++是一個非常糟糕的主意。無論如何,您必須以某種方式讓IDE將正確的標誌傳遞給編譯器,以便使用C++ 11功能和/或使用C++ 11不再實驗的編譯器。我聽說有一些「Customize C++ Support」按鈕或UI中的某個地方的下拉菜單,可以爲你做到這一點。 –
我知道我必須使用-std = C++ 11或-std = gnu ++ 11,但我怎麼配置? – eyal