# undefined reference to \`NAGetAppIpv6Gateway' compiling error.

**URL:** <https://forums.digi.com/t/undefined-reference-to-nagetappipv6gateway-compiling-error/12425>\
**Category:** Embedded Devices\
**Tags:** netos\
**Created:** [January 21, 2014, 4:31pm UTC](https://forums.digi.com/t/undefined-reference-to-nagetappipv6gateway-compiling-error/12425 "2014-01-21T16:31:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsantana](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@hsantana](https://forums.digi.com/u/hsantana)\
**Post date:** [January 21, 2014, 4:31pm UTC](https://forums.digi.com/t/undefined-reference-to-nagetappipv6gateway-compiling-error/12425/1 "2014-01-21T16:31:03Z")

</div>

I am getting the following error when compiling my application:

-lstdc++ -Wl,–end-group -Wl,-Map,image.map -Wl,–wrap=tfGetAddrInfo  
bsp/7\_5/connectcore9p9215\_a/lib/libbsp.a(customizeParams.o): In function `customizeIamGetDefaultIpv6GatewayConfig': ./customize/customizeParams.c:284: undefined reference to `NAGetAppIpv6Gateway’  
collect2: ld returned 1 exit status  
make: \*\*\* [image.elf] Error 1  
make: Target `all’ not remade because of errors.

Any idea on how to solve this?

---

<div class="post-metadata">

**Author:** ![tuxembb](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@tuxembb](https://forums.digi.com/u/tuxembb)\
**Post date:** [January 22, 2014, 1:28am UTC](https://forums.digi.com/t/undefined-reference-to-nagetappipv6gateway-compiling-error/12425/2 "2014-01-22T01:28:51Z")

</div>

Did you install all the available patches/updates via Package Manager?  
After installing create a new sample project and check whether you can build.

If you can then create a new project with all required fucntions and then copy/paste your source code into it.

Build and check.

If it fails make sure that you have  
#include “appconf\_api.h”  
in your main.c

If yes then in project properties go to libraries selection and check whether you have libbsp(dbg).a added as a library, if not please include.

---

<div class="post-metadata">

**Author:** ![steved2](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@steved2](https://forums.digi.com/u/steved2)\
**Post date:** [January 22, 2014, 1:59am UTC](https://forums.digi.com/t/undefined-reference-to-nagetappipv6gateway-compiling-error/12425/3 "2014-01-22T01:59:50Z")

</div>

appconf.h and appconf\_api.c were updated to include that reference a few months ago.  
Update these files from a new project (merge changes if you’ve edited the Digi originals)

---

<div class="post-metadata">

**Author:** ![hsantana](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@hsantana](https://forums.digi.com/u/hsantana)\
**Post date:** [January 22, 2014, 1:46pm UTC](https://forums.digi.com/t/undefined-reference-to-nagetappipv6gateway-compiling-error/12425/4 "2014-01-22T13:46:53Z")

</div>

Thanks for the fast answers.

I updated my software with package manager and created a new project. I moved my source files to it.

Right now I am getting the following errors:

-lstdc++ -Wl,–end-group -Wl,-Map,image.map -Wl,–wrap=tfGetAddrInfo  
./appconf\_api.o: In function `NAGetAppiDigiInit': /cygdrive/c/Users/DanielSantana/My Documents/Digi_ESP/workspace_75/DigiMaster/Debug/../appconf_api.c:230: undefined reference to `app\_idigi\_init’  
collect2: ld returned 1 exit status  
make: \*\*\* [image.elf] Error 1  
make: Target `all’ not remade because of errors.

Any ideas?

---

<div class="post-metadata">

**Author:** ![dakotas\_dad](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@dakotas\_dad](https://forums.digi.com/u/dakotas_dad)\
**Post date:** [January 22, 2014, 2:29pm UTC](https://forums.digi.com/t/undefined-reference-to-nagetappipv6gateway-compiling-error/12425/5 "2014-01-22T14:29:40Z")

</div>

Check the following:  
appconf\_api.c should have the following:

#ifdef APP\_IDIGI\_INIT  
return APP\_IDIGI\_INIT;  
#else  
return NULL;  
#endif

In appconf.h there might be a  
#define APP\_IDIGI\_INIT to something

Additionally if you are including cloud access in your application, there should be a definition of whatever APP\_IDIGI\_INIT is defined to in root.c
