ndk編譯錯誤:error: 'override' does not name a type
Ubuntu12.04下用NDKR10C編譯webrtc的libjingle_peerconnection_so, 遇到文章標題所示錯誤。查了下,“override”是C++11版新加的特性,與final想對應,用於在子類中顯示指定所繼承的方法能不能被覆蓋。GCC從4.7版本開始支援此特性。
解決辦法:終端輸入ndk-build V=1, 檢視輸出資訊,當前NDK用的是arm-linux-androideabi-4.6,版本低了,檢視了下我的NDK還支援4.8和4.9,於是在Application.mk中新增:
NDK_TOOLCHAIN_VERSION = 4.9
再次ndk-build,問題解決
相關文章
- 編譯錯誤 --- does not name a type和field `XX' has incomplete type編譯
- 編譯錯誤--------:XX does not name a type和field `XX' has incomplete type編譯
- error :does not name a typeError
- error: '[class name]' does not name a typeError
- error: 'cout' does not name a type|Error
- Android之NDK開發錯誤 error: unknown type name 'JNIEXPORT'AndroidErrorExport
- QT中error: xxx does not name a type xxx錯誤QTError
- 編譯錯誤導致浪費10多分鐘, 編譯錯誤的提示:xxx does not name a type xxx編譯
- error: ‘xxx’ does not name a typeError
- error: ‘變數名‘ does not name a type|Error變數
- `QtValidLicenseForCoreModule' does not name a type 錯誤的解決QTREM
- 兩個C++編譯錯誤及解決辦法--does not name a type和field `XX' has incomplete typeC++編譯
- Qt 報錯 “類名”does not name a typeQT
- ‘map’ does not name a type
- vector does not name a type
- does not name a type 的可能性
- 'int32_t' does not name a type
- AndroidStudio之NDK常見編譯錯誤Android編譯
- Qt 標頭檔案互相包含會報錯'' does not name a typeQT
- xcode6編譯錯誤,提示Expected a typeXCode編譯
- PSQLexception: ERROR : type "signed" does not existSQLExceptionError
- 通俗易懂解釋一類和二類錯誤(Type I Error Type II Error)Error
- VS 編譯錯誤編譯
- eclipse :報錯 ‘XXXX‘ does not name a type的解決辦法Eclipse
- ipvs編譯錯誤編譯
- php編譯小錯誤PHP編譯
- 編譯PHP的錯誤編譯PHP
- Eclipse中執行出現selection does not contain a main type錯誤EclipseAI
- ndk編譯C++,提示找不到標頭檔案(ndk-build error string No such file or directory)編譯C++UIError
- android NDK 交叉編譯Android編譯
- cygwin下ndk編譯protobuf編譯
- opencv 編譯常見錯誤OpenCV編譯
- 交叉編譯-Mac環境使用NDK編譯FFmpeg編譯Mac
- 最近編譯tolua_runtime安卓編譯錯誤編譯安卓
- libusb android ndk編譯--編譯mipsAndroid編譯
- 網站編譯錯誤 Server Error in '/' Application Compilation Error error code -1073741502 csc.exe網站編譯ServerErrorAPP
- 經典的編譯錯誤 (轉)編譯
- PHP編譯安裝時常見錯誤解決辦法,php編譯常見錯誤PHP編譯