CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: std::vector

  1. #1
    Guest

    std::vector


    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



  2. #2
    Join Date
    May 1999
    Posts
    123

    Re: std::vector

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured