# vTaskResume & vTaskSuspend

**URL:** <https://forums.freertos.org/t/vtaskresume-vtasksuspend/3161>\
**Category:** Kernel\
**Created:** [January 26, 2008, 2:39am UTC](https://forums.freertos.org/t/vtaskresume-vtasksuspend/3161 "2008-01-26T02:39:24Z")\
**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:** [January 26, 2008, 2:39am UTC](https://forums.freertos.org/t/vtaskresume-vtasksuspend/3161/1 "2008-01-26T02:39:24Z")

</div>

**[brenodee](https://sourceforge.net/u/brenodee/)** wrote on [Saturday, January 26, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/8a28c6f2/#ea8f):

Hi, I got undefined reference error from compiler when tried to use those commands regardless of having configured the INCLUDE\_vTaskSuspend to 1 in RTOSconfig file. Is there anything else to be configured?

Best wishes!!!

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 26, 2008, 3:17am UTC](https://forums.freertos.org/t/vtaskresume-vtasksuspend/3161/2 "2008-01-26T03:17:44Z")

</div>

**[brenodee](https://sourceforge.net/u/brenodee/)** wrote on [Saturday, January 26, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/8a28c6f2/#ea8f/e64c):

I fixed the previous error doing a make clean. But the command is not working! I do a vTaskSuspend(xHandle) but it doesn’t stop the thread!!!

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:** [January 27, 2008, 9:59am UTC](https://forums.freertos.org/t/vtaskresume-vtasksuspend/3161/3 "2008-01-27T09:59:34Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, January 27, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/8a28c6f2/#ea8f/e64c/92d3):

I presume you are using GCC?

Using an unmodified GCC demo I tried adding vTaskSuspend( NULL ); within a task and as expected it failed to link.&nbsp; Then I changed the definition INCLUDE\_vTaskSuspend to 1 in FreeRTOSConfig.h to include the file, and then the project compiled and linked without any errors.

From the files you sent I can see that you have already set INCLUDE\_vTaskSuspend to 1 so I don’t know why your code would not build.&nbsp; Have you made any other changes?

Regards.
