Gents,
i'm trying to compile s simple example "examples/BasicConnectivityTest" and getting all strange errors.
first the structure on my drive is :
/home/az/work/Arduino/Sketches/Examples/DW1000/BasicConnectivityTest/
|-src
|-main.cpp -- renamed BasicConnectivtytest.ino
|-lib
| - DW1000 - git clone of arduino-dw1000
|- dw1000_api_rev2p01 - the unzipped from decawave
I compile in Atom with PlatformIO :
build looks like this :
^
.pioenvs/uno/DW1000/DW1000Time.h:78:36: error: 'constexpr' needed for in-class initialization of static data member 'const float
DW1000Time::MILLISECONDS' of non-integral type [-fpermissive]
static const float MILLISECONDS = 1e3;
^
.pioenvs/uno/DW1000/DW1000Time.h:79:36: error: 'constexpr' needed for in-class initialization of static data member 'const float
DW1000Time::MICROSECONDS' of non-integral type [-fpermissive]
static const float MICROSECONDS = 1;
^
.pioenvs/uno/DW1000/DW1000Time.h:80:35: error: 'constexpr' needed for in-class initialization of static data member 'const float
DW1000Time::NANOSECONDS' of non-integral type [-fpermissive]
static const float NANOSECONDS = 1e-3;
^
scons: *\ [.pioenvs/uno/src/main.o] Error 1
========================= [ ERROR ] Took 0.96 seconds =========================
I'm certain i'm doing some basic mistake, but for life of me can't figure out what it is.
I'm getting the same mistake if i use Arduino IDE and install the driver using their lib manager.
Gents, i'm trying to compile s simple example "examples/BasicConnectivityTest" and getting all strange errors.
first the structure on my drive is : /home/az/work/Arduino/Sketches/Examples/DW1000/BasicConnectivityTest/ |-src |-main.cpp -- renamed BasicConnectivtytest.ino |-lib | - DW1000 - git clone of arduino-dw1000 |- dw1000_api_rev2p01 - the unzipped from decawave
I compile in Atom with PlatformIO : build looks like this : ^ .pioenvs/uno/DW1000/DW1000Time.h:78:36: error: 'constexpr' needed for in-class initialization of static data member 'const float DW1000Time::MILLISECONDS' of non-integral type [-fpermissive] static const float MILLISECONDS = 1e3; ^ .pioenvs/uno/DW1000/DW1000Time.h:79:36: error: 'constexpr' needed for in-class initialization of static data member 'const float DW1000Time::MICROSECONDS' of non-integral type [-fpermissive]
static const float MICROSECONDS = 1; ^ .pioenvs/uno/DW1000/DW1000Time.h:80:35: error: 'constexpr' needed for in-class initialization of static data member 'const float DW1000Time::NANOSECONDS' of non-integral type [-fpermissive] static const float NANOSECONDS = 1e-3; ^ scons: *\ [.pioenvs/uno/src/main.o] Error 1 ========================= [ ERROR ] Took 0.96 seconds =========================
I'm certain i'm doing some basic mistake, but for life of me can't figure out what it is. I'm getting the same mistake if i use Arduino IDE and install the driver using their lib manager.
The only issue i found with the same type of error is the already closed https://github.com/thotro/arduino-dw1000/issues/31 Thank you