7982681
asked on
fatal error: vector: No such file or directory Visual Studio 2015 for Arduino
Visual Studio 2015 for Arduino C++.
My first program gives "fatal error: vector: No such file or directory". Tried various option from web such as vector.h etc.
#include <vector>
using std::vector;
void setup() {
Serial.begin(9600);
}
void loop() {
std::vector<int> newvector;
Serial.println("Hi");
delay(100);
}
My first program gives "fatal error: vector: No such file or directory". Tried various option from web such as vector.h etc.
#include <vector>
using std::vector;
void setup() {
Serial.begin(9600);
}
void loop() {
std::vector<int> newvector;
Serial.println("Hi");
delay(100);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks about the library In my ignorance i did not realise the Arduino was different from standard.
ASKER
String xx = "";
in the .ino file but not in a .cpp file!
I'm assuming some library or reference is needed.
I get these same problems with Eclipse (Arduino version) and Visual Studio for Arduino!!!