Hello,
I'm currently using CCS v3.3 with code generation tools v6.1.22 and I haven't been able to successfully use the the vector container. My code looks something like the following:
#include <stdio.h>
#include <std.h>
#include <stdlib.h>
#include <vector>
int main()
{
vector<int> example; //Vector to store integers
example.push_back(3); //Add 3 onto the vector
example.push_back(10); //Add 10 to the end
example.push_back(33); //Add 33 to the end
return(0);
}
When I compile I get the following errors:
"TestMain.cpp", line 44: error: identifier "vector" is undefined
"TestMain.cpp", line 44: error: type name is not allowed
"TestMain.cpp", line 44: error: identifier "example" is undefined
What can I do to fix the problem?
Thanks,
Len