# Linux Simulator for FreeRTOS undefined reference to mq\_

**URL:** <https://forums.freertos.org/t/linux-simulator-for-freertos-undefined-reference-to-mq/6070>\
**Category:** Kernel\
**Created:** [July 22, 2016, 4:36pm UTC](https://forums.freertos.org/t/linux-simulator-for-freertos-undefined-reference-to-mq/6070 "2016-07-22T16:36:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [July 22, 2016, 4:36pm UTC](https://forums.freertos.org/t/linux-simulator-for-freertos-undefined-reference-to-mq/6070/1 "2016-07-22T16:36:44Z")

</div>

**[waheed-ramzan](https://sourceforge.net/u/waheed-ramzan/)** wrote on [Friday, July 22, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff71a1eb/#91f3):

Hi,

I am trying to build the Linux Simulator in eclipse in elementary OS. I got the following errors

```auto
Description	Resource	Path	Location	Type
undefined reference to `mq_close'	PosixMessageQueueIPC.c	/FreeRTOS_Posix/AsyncIO	line 96	C/C++ Problem
undefined reference to `mq_notify'	PosixMessageQueueIPC.c	/FreeRTOS_Posix/AsyncIO	line 85	C/C++ Problem
undefined reference to `mq_notify'	PosixMessageQueueIPC.c	/FreeRTOS_Posix/AsyncIO	line 177	C/C++ Problem
undefined reference to `mq_open'	PosixMessageQueueIPC.c	/FreeRTOS_Posix/AsyncIO	line 44	C/C++ Problem
undefined reference to `mq_receive'	PosixMessageQueueIPC.c	/FreeRTOS_Posix/AsyncIO	line 131	C/C++ Problem
undefined reference to `mq_receive'	PosixMessageQueueIPC.c	/FreeRTOS_Posix/AsyncIO	line 148	C/C++ Problem
undefined reference to `mq_send'	PosixMessageQueueIPC.c	/FreeRTOS_Posix/AsyncIO	line 110	C/C++ Problem
undefined reference to `mq_unlink'	PosixMessageQueueIPC.c	/FreeRTOS_Posix/AsyncIO	line 47	C/C++ Problem
undefined reference to `mq_unlink'	PosixMessageQueueIPC.c	/FreeRTOS_Posix/AsyncIO	line 99	C/C++ Problem

```

Kindly help me out.

Thanks

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [July 24, 2016, 8:23am UTC](https://forums.freertos.org/t/linux-simulator-for-freertos-undefined-reference-to-mq/6070/2 "2016-07-24T08:23:14Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, July 24, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff71a1eb/#6dcf):

Does the following post help? [http://interactive.freertos.org/entries/110741506-Updated-Posix-Linux-Port](http://interactive.freertos.org/entries/110741506-Updated-Posix-Linux-Port)

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [July 25, 2016, 5:32pm UTC](https://forums.freertos.org/t/linux-simulator-for-freertos-undefined-reference-to-mq/6070/3 "2016-07-25T17:32:54Z")

</div>

**[waheed-ramzan](https://sourceforge.net/u/waheed-ramzan/)** wrote on [Monday, July 25, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff71a1eb/#678d):

Thanks for the solution but this did not help. I stucked with it kindly help me.
