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
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.
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.