# NETOS 7.5 and C++ STL?

**URL:** <https://forums.digi.com/t/netos-7-5-and-c-stl/15693>\
**Category:** NET+OS\
**Tags:** c, stl, netos, 5, 7\
**Created:** [October 30, 2015, 2:12pm UTC](https://forums.digi.com/t/netos-7-5-and-c-stl/15693 "2015-10-30T14:12:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marzahld](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@marzahld](https://forums.digi.com/u/marzahld)\
**Post date:** [October 30, 2015, 2:12pm UTC](https://forums.digi.com/t/netos-7-5-and-c-stl/15693/1 "2015-10-30T14:12:19Z")

</div>

Anyone know if its possible to use the C++ STL with NETOS 7.5 applications? The arm-elf-g++ version says its 4.2 which should have been way after this was included. Maybe I need to get an add-on package or something?

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [October 30, 2015, 2:48pm UTC](https://forums.digi.com/t/netos-7-5-and-c-stl/15693/2 "2015-10-30T14:48:57Z")

</div>

did you try the C++ sample app? does it compile and work for you? What exactly fails?

---

<div class="post-metadata">

**Author:** ![marzahld](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@marzahld](https://forums.digi.com/u/marzahld)\
**Post date:** [October 30, 2015, 10:41pm UTC](https://forums.digi.com/t/netos-7-5-and-c-stl/15693/3 "2015-10-30T22:41:15Z")

</div>

It’s unable to find the stl list header  
#include  
I selected c++ support when creating the project, but maybe I need something more to get to the stl Container classes.

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [November 2, 2015, 10:59am UTC](https://forums.digi.com/t/netos-7-5-and-c-stl/15693/4 "2015-11-02T10:59:44Z")

</div>

I haven’t tried this and I’m not really familiar with C++, but apparently the problem is that the C++ features you want to use are obsolete. See this web page: [https://gcc.gnu.org/onlinedocs/libstdc++/manual/backwards.html](https://gcc.gnu.org/onlinedocs/libstdc++/manual/backwards.html). I suggest you try the stuff suggested by this web page and see if it works.

---

<div class="post-metadata">

**Author:** ![marzahld](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@marzahld](https://forums.digi.com/u/marzahld)\
**Post date:** [November 3, 2015, 2:33pm UTC](https://forums.digi.com/t/netos-7-5-and-c-stl/15693/5 "2015-11-03T14:33:18Z")

</div>

The C++ sample app works fine, but this sample does not use the STL/generics library which lets you define resizable list, vector, array, etc. These were an add on to the original C++ back in the late 90’s I guess. They are not outdated, and are very commonly used… maybe not so much in embedded development.

---

<div class="post-metadata">

**Author:** ![phess](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@phess](https://forums.digi.com/u/phess)\
**Post date:** [November 15, 2015, 1:17pm UTC](https://forums.digi.com/t/netos-7-5-and-c-stl/15693/6 "2015-11-15T13:17:33Z")

</div>

I’m using C++ STL and it works fine. But do not use C++ exception handling (try…catch…) in conjunction with threads.
