# Undefined reference when using mksys, but not mkapp

**URL:** <https://forum.legato.io/t/undefined-reference-when-using-mksys-but-not-mkapp/6550>\
**Category:** Uncategorized\
**Created:** [July 13, 2023, 1:59pm UTC](https://forum.legato.io/t/undefined-reference-when-using-mksys-but-not-mkapp/6550 "2023-07-13T13:59:08Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 2, 2023, 1:12pm UTC](https://forum.legato.io/t/undefined-reference-when-using-mksys-but-not-mkapp/6550/31 "2023-08-02T13:12:21Z")

</div>

i modify the wifi.sdef to add the application.

> [@Flash size wp7607](https://forum.legato.io/t/flash-size-wp7607/3805/35):
>
> you can go to legato-19.02.0/modules/WiFi/wifi.sdef, under “apps:” section, add e.g. $LEGATO\_ROOT/apps/sample/helloWorld/helloWorld.adef [image] Now the new app will be included in legato.cwe. Please also note that the max size for legato partition is 8MB.

For compilation, i just type “make wp76xx” in leaf shell

---

_[View the full topic](https://forum.legato.io/t/undefined-reference-when-using-mksys-but-not-mkapp/6550)._
