急急急!!!一个简单的问题
我现在刚刚转到unix下c++编程,以前是用vc的,现在做了一个简单的测试程序,可是却出现了很多的错误,我用了标准模板类,请问大侠,unix下是不是不支持stl,我想不太可能。源程序如下
#include "iostream.h"
#include "vector.h"
#include "algorithm.h"
using namespace std;
int main(int argc, char* argv[])
{
vector<int> test;
test.push_back(1);
test.push_back(2);
test.push_back(3);
test.push_back(4);
reverse(test.begin(),test.end());
cout<<"test first: "<<test.begin()<<endl;
cout<<"test last: "<<test[3]<<endl;
return 0;
}
可是编译出错,说找不到vector.h,是不是我写的有问题?
我用的aCC编译命令
请指点