# "StandardCplusplus" library got error...

**URL:** <https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112>\
**Category:** Programming\
**Created:** [February 28, 2014, 6:59am UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112 "2014-02-28T06:59:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 28, 2014, 6:59am UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/1 "2014-02-28T06:59:42Z")

</div>

can't it use on windows OS?  
StandardCplusplus library copy & paste to Arduino/libraries/ and write sketch..

```cpp
#include <StandardCplusplus.h> 

...

```

but i got error message "cc1plus.exe: error: C:.........\Arduino\libraries\StandardCplusplus\utility: not a directory"  
how can i fix/use on windows?

or **StandardCplusplus and avr-stl-1.1, are they the same?**

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 28, 2014, 10:21am UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/2 "2014-02-28T10:21:09Z")

</div>

And what is the code you are actually trying to compile...?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 28, 2014, 10:41am UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/3 "2014-02-28T10:41:48Z")

</div>

> majenko:  
> And what is the code you are actually trying to compile...?

```arduino
#include <StandardCplusplus.h>
#include <serstream>
#include <string>
#include <vector>
#include <iterator>

using namespace std;

// <iostream> declares cout/cerr, but the application must define them
// because it's up to you what to do with them.
namespace std
{
  ohserialstream cout(Serial);
}

vector<string> strings;

void setup(void)
{
  Serial.begin(57600);

  strings.push_back("Hello,");
  strings.push_back("world!");
  copy(strings.begin(),strings.end(),ostream_iterator<string>(cout," "));
  cout << endl;
}

void loop(void)
{
}

// vim:cin:ai:sts=2 sw=2 ft=cpp

```

its default example in StandardCplusplus library

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 28, 2014, 12:02pm UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/4 "2014-02-28T12:02:47Z")

</div>

My guess is that you haven't installed the library correctly.

I would surmise that you have somehow ended up with a file called "utility" in your StandardCplusplus folder, which it won't like. That file certainly isn't part of the archive, so you must have done something to create it.

---

<div class="post-metadata">

**Author:** ![nag1089](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@nag1089](https://forum.arduino.cc/u/nag1089)\
**Post date:** [November 15, 2015, 7:45pm UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/5 "2015-11-15T19:45:46Z")

</div>

I am also getting this error. I am just trying to compile the example program.

---

<div class="post-metadata">

**Author:** ![DrAzzy](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@DrAzzy](https://forum.arduino.cc/u/DrAzzy)\
**Post date:** [November 15, 2015, 7:49pm UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/6 "2015-11-15T19:49:57Z")

</div>

> nag1089:  
> I am also getting this error. I am just trying to compile the example program.

That error is displayed if you do not have the library installed, but try to use it anyway.

---

<div class="post-metadata">

**Author:** ![nag1089](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@nag1089](https://forum.arduino.cc/u/nag1089)\
**Post date:** [November 15, 2015, 8:31pm UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/7 "2015-11-15T20:31:46Z")

</div>

I put the StandCplusplus folder in the library folder. I can see import the libraries and see the examples

---

<div class="post-metadata">

**Author:** ![skullquake](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@skullquake](https://forum.arduino.cc/u/skullquake)\
**Post date:** [August 3, 2018, 3:59pm UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/8 "2018-08-03T15:59:01Z")

</div>

Hi

Quick Question

I want a blocking cin connected to Serial via

ihserialstream cin(Serial);

In the loop the call to cin is not blocking,

void loop(void)  
{  
cin\>\>i;  
cout\<\<i\<\<endl;  
}

How may I resolve this?

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [August 3, 2018, 4:12pm UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/9 "2018-08-03T16:12:44Z")

</div>

> How may I resolve this?

Maybe someone will revive this thread again an another 3 years

Alternatively you could start a new thread with a relevant title, describe what you are trying to do and include the code and error messages that you already have.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 8:33pm UTC](https://forum.arduino.cc/t/standardcplusplus-library-got-error/216112/10 "2021-05-05T20:33:44Z")

</div>

Closed on May 5, 2021, 8:33pm UTC


