Click to See Complete Forum and Search --> : std::vector


April 11th, 1999, 12:12 PM
Hello.
I have a simple console app that looks
like this:

using namespace std;

int main()
{
...
vector< string > abc;
}

On compiling under VC++6, I get 12 warning
messages that are very unreadable, with what
seems like garbage characters throughout.
Any ideas on what the problem might be?

Thanks,
steve

Jerry Coffin
April 11th, 1999, 03:18 PM
It's a little hard to guess. This compiled fine for me:

#include <string>
#include <vector>

using namespace std;

int main()
{
// ...
vector< string > abc;
return 0;
}

Note that I've addd the proper headers. If you're compiling this from the command line, you need to use -GX.


The universe is a figment of its own imagination.