how to use stl in a window application project

hi..
i'm trying to use stl in a windows application project ..
i used to use it in my console project with ..#include <vector> as example .. but when i tried to doing so in a windows application project .. the visual studio show me error C2065: 'vector' : undeclared identifier

so what can i do to use stl in a windows application prject
using namespace std; OR using std::vector;
Last edited on
Please don't use using namespace std;

Either prefix your identifiers with std:

std::vector<int> v; // prefer

Or have 'using' name it specifically:

using std::vector; // if you must

But never ever have using std::vector; in your header files (.h)
Topic archived. No new replies allowed.