Although Richard had a similar topic, my issue seems different so I created a new topic. I am running an Arduino Mega2560 using Arduino 1.0.6.
I receive the following error when I try to compile the pressure sensor example code:
error: ISO C++ forbids declaration of ‘constexpr’ with no type
error: expected ‘;’ before ‘float’
It seems like the error starting in the MS5837.h library. One thing I noticed is that the sensor library calls out the arduino.h library which I do not have. I thought about loading the arduino library, but it specifies a half dozen more libraries.
I’m hoping there is an easy solution to declare the ‘constexpr’ type without loading more libraries.