Apparently the syntax of your program is not correct.
This builds just fine for me:
#include <vector>
int main() {
std::vector<int>::iterator iter;
return 0;
}
#include <vector>
int main() {
std::vector<int>::iterator iter;
return 0;
}
To copy to clipboard, switch view to plain text mode
So does this:
#include <vector>
using namespace std;
int main() {
vector<int>::iterator iter;
return 0;
}
#include <vector>
using namespace std;
int main() {
vector<int>::iterator iter;
return 0;
}
To copy to clipboard, switch view to plain text mode
$ g++ --version
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Bookmarks