0
w6012358

大家好,我用的板子是RTL8195,我要使用一個SPI接口的OLED並讓它顯示圖案;我把之前寫在NodeMCU(ESP8266-12E)的code改成RTL8195可以編譯的格式,但一直卡在#include <SPI.h>無法編譯,出現下面的編譯訊息:

 

In file included from c:\users\r16039\appdata\local\arduino15\packages\realtek\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\cstdint:35:0,

from C:\Users\username\AppData\Local\Arduino15\packages\realtek\hardware\ameba\1.1.4\libraries\SPI\AmebaILI9341.h:5,

from C:\Users\username\AppData\Local\Arduino15\packages\realtek\hardware\ameba\1.1.4\libraries\SPI\AmebaILI9341.cpp:1:

c:\users\username\appdata\local\arduino15\packages\realtek\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\bits\c++0x_warning.h:32:2: 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.

#error This file requires compiler and library support for the \

^

exit status 1
Error compiling.

 

請問這該如何解??

 

謝謝解答

sean 回答了