"StandardCplusplus" library got error...

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

#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?

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

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

#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

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.

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

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.

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

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?

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.