# Enumeraion cannot be resolved

**URL:** <https://forum.legato.io/t/enumeraion-cannot-be-resolved/2655>\
**Category:** Legato Application Framework\
**Created:** [September 5, 2017, 2:58pm UTC](https://forum.legato.io/t/enumeraion-cannot-be-resolved/2655 "2017-09-05T14:58:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lichen](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lichen](https://forum.legato.io/u/lichen)\
**Post date:** [September 5, 2017, 2:58pm UTC](https://forum.legato.io/t/enumeraion-cannot-be-resolved/2655/1 "2017-09-05T14:58:38Z")

</div>

Hi all,

I had a error when build the program. It says that

> Symbol ‘MANGOH\_SIM2GPIO\_ACTIVE\_HIGH’ could not be resolved

The enumeration value _MANGOH\_SIM2GPIO\_ACTIVE\_HIGH_ is auto-generated from le\_gpio.api. I think it’s a problem regarding the build environment setting but I don’t know for sure. Any ideas?

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/dfrey/32/563_2.png) [@dfrey](https://forum.legato.io/u/dfrey)\
**Post date:** [September 6, 2017, 4:32pm UTC](https://forum.legato.io/t/enumeraion-cannot-be-resolved/2655/2 "2017-09-06T16:32:03Z")

</div>

You should have a line like this in your `Component.cdef`:

```
 mangoh_button = le_gpio.api 

```

You should have a line like this in `YourApp.adef` (this example uses the gpio expander, the part after the arrow will be different if you are using a GPIO on the WP module):

```
buttonToAirVantage.buttonToAirVantageComponent.mangoh_button -> gpioExpanderServiceRed.mangoh_gpioExpPin14

```

Then in your app’s C code, you will have the constant `MANGOH_BUTTON_ACTIVE_HIGH`.
