# Sensor MS5837 Compile Error

**URL:** <https://discuss.bluerobotics.com/t/sensor-ms5837-compile-error/261>\
**Category:** Sensors\
**Created:** [March 27, 2016, 10:01am UTC](https://discuss.bluerobotics.com/t/sensor-ms5837-compile-error/261 "2016-03-27T10:01:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpitsch](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tpitsch](https://discuss.bluerobotics.com/u/tpitsch)\
**Post date:** [March 27, 2016, 10:01am UTC](https://discuss.bluerobotics.com/t/sensor-ms5837-compile-error/261/1 "2016-03-27T10:01:54Z")

</div>

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.

Any ideas?

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [March 30, 2016, 5:03am UTC](https://discuss.bluerobotics.com/t/sensor-ms5837-compile-error/261/2 "2016-03-30T05:03:01Z")

</div>

Hi Terry,

Is it possible to use a newer version of the Arduino software? They’ve made some big changes since 1.0.6. If not, there are some quick modifications that can be made to the library to fix this.

Let me know if you’d like me to explain those.

Best,

Rusty

---

<div class="post-metadata">

**Author:** ![tpitsch](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tpitsch](https://discuss.bluerobotics.com/u/tpitsch)\
**Post date:** [March 31, 2016, 12:20pm UTC](https://discuss.bluerobotics.com/t/sensor-ms5837-compile-error/261/3 "2016-03-31T12:20:30Z")

</div>

Rusty,

The updated Arduino software did the trick.

Thanks.

&nbsp;

Terry
