# Error with "new" clausule

**URL:** <https://forums.freertos.org/t/error-with-new-clausule/5469>\
**Category:** Kernel\
**Created:** [February 18, 2006, 11:33pm UTC](https://forums.freertos.org/t/error-with-new-clausule/5469 "2006-02-18T23:33:43Z")\
**Posts on this page:** 2\
**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:** [February 18, 2006, 11:33pm UTC](https://forums.freertos.org/t/error-with-new-clausule/5469/1 "2006-02-18T23:33:43Z")

</div>

**nobody** wrote on [Saturday, February 18, 2006](https://sourceforge.net/p/freertos/discussion/382005/thread/ed99e4b4/#b5d5):

Hi,  
When I use the "new" clausule for reserve memory in my code I obtain the following error linking:  
Fatal Error[e72]: Segment HEAP must be defined in a segment definition option (-Z, -b or -P)

I’m trying to develop firmware using design patterns with C++, but i’m having a lot of problems.

Someone can help me???

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [February 19, 2006, 8:43am UTC](https://forums.freertos.org/t/error-with-new-clausule/5469/2 "2006-02-19T08:43:50Z")

</div>

**nobody** wrote on [Sunday, February 19, 2006](https://sourceforge.net/p/freertos/discussion/382005/thread/ed99e4b4/#b5d5/2b1c):

The answer is in the error message.&nbsp; You do not have a heap segment declared in your linker script.&nbsp; I suspect also that you will run out of memory if you try to declare one.

This is not really a FreeRTOS question, more a question of your understanding of the tools you are using.
