When I compile
Code:
#include <vector>
int main() {
vector v;
return 0;
}
with MSVC 7 (dinkumware), these are the errors I get.
Code:
sourceFile.cpp
sourceFile.cpp(4) : error C2065: 'vector' : undeclared identifier
sourceFile.cpp(4) : error C2146: syntax error : missing ';' before identifier 'v'
sourceFile.cpp(4) : error C2065: 'v' : undeclared identifier
Since you are getting linker errors, I'm guessing that for some reason either the code is not being linked with the STL (unlikely) or it has been disabled (some compilers allow this).
Could you post the command-line arguments that are being passed to the compiler? It should be in the Compiler Options dialog box somewhere. If it has a "set to default" option, then try it (saving what it was before, of course). Also look for any options relating to the STL.
Can you compile this simple program?
Code:
#include <vector>
int main() {
std::vector v;
return 0;
}
If so, then the problem must lie elsewhere.