I am, whenever using the #include , getting the follow error:
Arduino\libraries\freertos-teensy\src/arduino_freertos.h:222:0,
sketchmar28a.ino:26: (Note, the mistake is at whatever line the first command is called)
\Arduino\libraries\freertos-teensy\src/portable/teensy.h:138:40: error: 'offset' declared as an 'inline' field
static inline timeval offset {0, 0};
^
arning: 'constexpr' needed for in-class initialization of static data member 'timeval freertos::clock::offset' of non-integral type [-fpermissive]
This error code comes from the main.ccp. In my own sketch, I get the issue at line 1, as the #include is at line 1.
If I comment out the freertos_arduino, from my code, looking like this:
`#include
In file included from c:\Users\soren\OneDrive\Documents\Arduino\libraries\freertos-teensy\src\portable\event_respondersupport.cpp:27:0:
c:\Users\soren\OneDrive\Documents\Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: error: 'offset' declared as an 'inline' field
static inline timeval offset {0, 0};
^
Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: warning: 'constexpr' needed for in-class initialization of static data member 'timeval freertos::clock::offset' of non-integral type [-fpermissive]
In file included from Arduino\libraries\freertos-teensy\src\portable\teensy4.cpp:32:0:
Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: error: 'offset' declared as an 'inline' field
static inline timeval offset {0, 0};
^
Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: warning: 'constexpr' needed for in-class initialization of static data member 'timeval freertos::clock::offset' of non-integral type [-fpermissive]
In file included from Arduino\libraries\freertos-teensy\src\portable\teensycommon.cpp:39:0:
Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: error: 'offset' declared as an 'inline' field
static inline timeval offset {0, 0};
^
Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: warning: 'constexpr' needed for in-class initialization of static data member 'timeval freertos::clock::offset' of non-integral type [-fpermissive]
While the program is short and not saying much, I've been busy trying to troubleshoot the teensy.h issue, without any results, before continuing.
Hello there.
I am, whenever using the #include, getting the follow error:
Arduino\libraries\freertos-teensy\src/arduino_freertos.h:222:0,
sketchmar28a.ino:26: (Note, the mistake is at whatever line the first command is called)
\Arduino\libraries\freertos-teensy\src/portable/teensy.h:138:40: error: 'offset' declared as an 'inline' field
static inline timeval offset {0, 0};
^
arning: 'constexpr' needed for in-class initialization of static data member 'timeval freertos::clock::offset' of non-integral type [-fpermissive]
This error code comes from the main.ccp. In my own sketch, I get the issue at line 1, as the #include is at line 1.
If I comment out the freertos_arduino, from my code, looking like this: `#include
include
include
include
define sample_rate_hz 80000
define sample_period (10000000/sample_rate_hz)
define buffer_size 1024
const int analogPin = A0; uint16_t buffer[buffer_size]; uint16_t buffer_index = 0; QueueHandle_t adc_queue;
void setup(){
}
void loop(){
}`
The error code I get then:
In file included from c:\Users\soren\OneDrive\Documents\Arduino\libraries\freertos-teensy\src\portable\event_respondersupport.cpp:27:0: c:\Users\soren\OneDrive\Documents\Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: error: 'offset' declared as an 'inline' field static inline timeval offset {0, 0}; ^ Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: warning: 'constexpr' needed for in-class initialization of static data member 'timeval freertos::clock::offset' of non-integral type [-fpermissive] In file included from Arduino\libraries\freertos-teensy\src\portable\teensy4.cpp:32:0: Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: error: 'offset' declared as an 'inline' field static inline timeval offset {0, 0}; ^ Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: warning: 'constexpr' needed for in-class initialization of static data member 'timeval freertos::clock::offset' of non-integral type [-fpermissive] In file included from Arduino\libraries\freertos-teensy\src\portable\teensycommon.cpp:39:0: Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: error: 'offset' declared as an 'inline' field static inline timeval offset {0, 0}; ^ Arduino\libraries\freertos-teensy\src\portable\teensy.h:138:40: warning: 'constexpr' needed for in-class initialization of static data member 'timeval freertos::clock::offset' of non-integral type [-fpermissive]
While the program is short and not saying much, I've been busy trying to troubleshoot the teensy.h issue, without any results, before continuing.
Any help is appreciated.