# Undefined reference to \`le\_gnss\_GetTtff'

**URL:** <https://mangoh.discourse.group/t/undefined-reference-to-le-gnss-getttff/9670>\
**Category:** mangOH Red\
**Created:** [September 20, 2021, 6:31am UTC](https://mangoh.discourse.group/t/undefined-reference-to-le-gnss-getttff/9670 "2021-09-20T06:31:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ismailmulla](https://avatars.discourse-cdn.com/v4/letter/i/96bed5/32.png) [@ismailmulla](https://mangoh.discourse.group/u/ismailmulla)\
**Post date:** [September 20, 2021, 6:31am UTC](https://mangoh.discourse.group/t/undefined-reference-to-le-gnss-getttff/9670/1 "2021-09-20T06:31:58Z")

</div>

Hi i am working on mangOH red since im new to this i want to collect the gps fix time but when i do mkapp -t wp76xx gpsComp.adef im facing this error(undefined reference to `le\_gnss\_GetTtff’).  
This is how my .c file looks like:  
#include “legato.h”  
#include “le\_gnss\_common.h”  
#include “le\_gnss\_interface.h”  
COMPONENT\_INIT  
{  
uint32\_t ttff = 0;

```
    int result = le_gnss_GetTtff(&ttff);
    LE_INFO("TTFF start =%d msec", ttff);

```

}

And this is my .adef file  
executables:  
{  
my\_gps = (gpsComp)  
}

processes:  
{  
run:  
{  
(my\_gps)  
}  
}

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [September 20, 2021, 7:16am UTC](https://mangoh.discourse.group/t/undefined-reference-to-le-gnss-getttff/9670/2 "2021-09-20T07:16:53Z")

</div>

you can refer to this test application:

> **[legato-af/apps/test/positioning/gnssTest at master · legatoproject/legato-af](https://github.com/legatoproject/legato-af/tree/master/apps/test/positioning/gnssTest)**
>
> master/apps/test/positioning/gnssTest
