Code:
[env:teensy41]
platform = teensy
board = teensy41
framework = arduino
build_flags = -DHTCW_GFX_NO_SWAP
lib_deps = codewitch-honey-crisis/htcw_uix
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION:
https://docs.platformio.org/page/boards/teensy/teensy41.html
PLATFORM: Teensy (5.0.0) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy @ 1.159.0 (1.59)
- tool-teensy @ 1.159.0 (1.59)
- toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1)
LDF: Library Dependency Finder ->
https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 99 compatible libraries
Scanning dependencies...
Dependency Graph
|-- htcw_uix @ 1.6.7
|-- htcw_gfx @ 2.2.2
|-- SSD1351_t3 @ 1.0.0
Building in release mode
p.o
Compiling .pio\build\teensy41\lib50f\htcw_gfx\source\gfx_math.cpp.o
In file included from C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/WProgram.h:69,
from C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/Arduino.h:6,
from .pio\libdeps\teensy41\htcw_io\src/io_stream.hpp:5,
from .pio\libdeps\teensy41\htcw_io\src\source\io_stream.cpp:2:
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h: In member function 'uint32_t IntervalTimer::cyclesFromPeriod(period_t)':
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:114:36: error: 'is_arithmetic_v' is not a member of 'std'; did you mean 'is_arithmetic'?
114 | static_assert(std::is_arithmetic_v<period_t>, "Period must be arithmetic");
| ^~~~~~~~~~~~~~~
| is_arithmetic
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:114:60: error: expected primary-expression before '>' token
114 | static_assert(std::is_arithmetic_v<period_t>, "Period must be arithmetic");
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:114:61: error: expected primary-expression before ',' token
114 | static_assert(std::is_arithmetic_v<period_t>, "Period must be arithmetic");
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:118:20: warning: 'if constexpr' only available with '-std=c++17' or '-std=gnu++17'
118 | if constexpr (std::is_integral_v<period_t>) // handles all integral types
| ^~~~~~~~~
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:118:36: error: 'is_integral_v' is not a member of 'std'; did you mean 'is_integral'?
118 | if constexpr (std::is_integral_v<period_t>) // handles all integral types
| ^~~~~~~~~~~~~
| is_integral
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:118:58: error: expected primary-expression before '>' token
118 | if constexpr (std::is_integral_v<period_t>) // handles all integral types
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:118:59: error: expected primary-expression before ')' token
118 | if constexpr (std::is_integral_v<period_t>) // handles all integral types
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:120:20: warning: 'if constexpr' only available with '-std=c++17' or '-std=gnu++17'
120 | if constexpr (std::is_floating_point_v<period_t>) // handles all float types
| ^~~~~~~~~
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:120:36: error: 'is_floating_point_v' is not a member of 'std'; did you mean 'is_floating_point'?
120 | if constexpr (std::is_floating_point_v<period_t>) // handles all float types
| ^~~~~~~~~~~~~~~~~~~
| is_floating_point
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:120:64: error: expected primary-expression before '>' token
120 | if constexpr (std::is_floating_point_v<period_t>) // handles all float types
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:120:65: error: expected primary-expression before ')' token
120 | if constexpr (std::is_floating_point_v<period_t>) // handles all float types
| ^
In file included from C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/WProgram.h:69,
from C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/Arduino.h:6,
from .pio\libdeps\teensy41\htcw_ml\src/ml_reader_fa.hpp:4,
from .pio\libdeps\teensy41\htcw_ml\src\source\ml_reader_fa.cpp:1:
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h: In member function 'uint32_t IntervalTimer::cyclesFromPeriod(period_t)':
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:114:36: error: 'is_arithmetic_v' is not a member of 'std'; did you mean 'is_arithmetic'?
114 | static_assert(std::is_arithmetic_v<period_t>, "Period must be arithmetic");
| ^~~~~~~~~~~~~~~
| is_arithmetic
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:114:60: error: expected primary-expression before '>' token
114 | static_assert(std::is_arithmetic_v<period_t>, "Period must be arithmetic");
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:114:61: error: expected primary-expression before ',' token
114 | static_assert(std::is_arithmetic_v<period_t>, "Period must be arithmetic");
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:118:20: warning: 'if constexpr' only available with '-std=c++17' or '-std=gnu++17'
118 | if constexpr (std::is_integral_v<period_t>) // handles all integral types
| ^~~~~~~~~
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:118:36: error: 'is_integral_v' is not a member of 'std'; did you mean 'is_integral'?
118 | if constexpr (std::is_integral_v<period_t>) // handles all integral types
| ^~~~~~~~~~~~~
| is_integral
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:118:58: error: expected primary-expression before '>' token
118 | if constexpr (std::is_integral_v<period_t>) // handles all integral types
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:118:59: error: expected primary-expression before ')' token
118 | if constexpr (std::is_integral_v<period_t>) // handles all integral types
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:120:20: warning: 'if constexpr' only available with '-std=c++17' or '-std=gnu++17'
120 | if constexpr (std::is_floating_point_v<period_t>) // handles all float types
| ^~~~~~~~~
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:120:36: error: 'is_floating_point_v' is not a member of 'std'; did you mean 'is_floating_point'?
120 | if constexpr (std::is_floating_point_v<period_t>) // handles all float types
| ^~~~~~~~~~~~~~~~~~~
| is_floating_point
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:120:64: error: expected primary-expression before '>' token
120 | if constexpr (std::is_floating_point_v<period_t>) // handles all float types
| ^
C:\Users\gazto\.platformio\packages\framework-arduinoteensy\cores\teensy4/IntervalTimer.h:120:65: error: expected primary-expression before ')' token
120 | if constexpr (std::is_floating_point_v<period_t>) // handles all float types
| ^
Compiling .pio\build\teensy41\lib50f\htcw_gfx\source\gfx_palette.cpp.o
*** [.pio\build\teensy41\lib885\htcw_io\source\io_stream.cpp.o] Error 1
*** [.pio\build\teensy41\lib4d4\htcw_ml\source\ml_reader_fa.cpp.o] Error 1