How can I enable c ++ 14 standard support in Arduino IDE?
Adding a flag to the file “platform.txt” does not help.
(compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++14 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto)
Also a minor question about C ++ 17 is how to enable it?
A confusing thing about the Arduino AVR Boards hardware package is that a copy is bundled with the Arduino IDE, but if you update Arduino AVR Boards via Boards Manager, the update is installed to a different location, and the copy in the Arduino IDE installation folder is no longer used. So if you're editing the platform.txt in the unused copy of Arduino AVR Boards, it will have no effect.
The easiest way to find the active hardware package location is as follows:
Select a board from the hardware package you want to find from the Tools > Board menu
File > Examples > SPI > BarometricPressureSensor (or any other SPI example sketch)
Sketch > Show Sketch Folder
Move up folder levels until you reach the one that contains platform.txt. That is the file you should edit.
The change you made should be all that is required. I believe you could do the same with C++17.
pert:
A confusing thing about the Arduino AVR Boards hardware package is that a copy is bundled with the Arduino IDE, but if you update Arduino AVR Boards via Boards Manager, the update is installed to a different location, and the copy in the Arduino IDE installation folder is no longer used. So if you're editing the platform.txt in the unused copy of Arduino AVR Boards, it will have no effect.
The easiest way to find the active hardware package location is as follows:
Select a board from the hardware package you want to find from the Tools > Board menu
File > Examples > SPI > BarometricPressureSensor (or any other SPI example sketch)
Sketch > Show Sketch Folder
Move up folder levels until you reach the one that contains platform.txt. That is the file you should edit.
The change you made should be all that is required. I believe you could do the same with C++17.