# with C++

**URL:** <https://forums.freertos.org/t/with-c/7828>\
**Category:** Kernel\
**Created:** [May 5, 2019, 11:01am UTC](https://forums.freertos.org/t/with-c/7828 "2019-05-05T11:01:33Z")\
**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:** [May 5, 2019, 11:01am UTC](https://forums.freertos.org/t/with-c/7828/1 "2019-05-05T11:01:33Z")

</div>

**[sorinl](https://sourceforge.net/u/sorinl/)** wrote on [Sunday, May 05, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/e88625640f/#fc28):

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 5, 2019, 12:12pm UTC](https://forums.freertos.org/t/with-c/7828/2 "2019-05-05T12:12:40Z")

</div>

**[richarddamon](https://sourceforge.net/u/richarddamon/)** wrote on [Sunday, May 05, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/e88625640f/#b87c):

If your question is can you use FreeRTOS with C++, yes you can. I have some wrappers that make the API more object oriented at [https://github.com/richard-damon/FreeRTOScpp](https://github.com/richard-damon/FreeRTOScpp) (I am sure there are likely others around too)

The one small trick is that you need to compile the FreeRTOS files as a C program (not C++), and any ‘by name’ callbacks must be defined as extern “C” functions.
