Upgrade to VC2010

Discussion in 'C++' started by sharat, Dec 1, 2011.

  1. sharat

    sharat Guest

    Hi,
    I am upgrading my project from VS2008 to VS2010. I am getting
    following error while compiling my code.

    error C2065: 'istream_iterator' : undeclared identifier
    error C2275: 'std::string' : illegal use of this type as an expression

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
    \xstring(263) : see declaration of 'std::string'

    Can anybody help how to resolve this?

    Thanks in advance.
    sharat, Dec 1, 2011
    #1
    1. Advertising

  2. sharat <> wrote:
    > Hi,
    > I am upgrading my project from VS2008 to VS2010. I am getting
    > following error while compiling my code.
    >
    > error C2065: 'istream_iterator' : undeclared identifier
    > error C2275: 'std::string' : illegal use of this type as an expression
    >
    > C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
    > \xstring(263) : see declaration of 'std::string'
    >
    > Can anybody help how to resolve this?


    Yes.
    Juha Nieminen, Dec 1, 2011
    #2
    1. Advertising

  3. On Dec 1, 5:42 am, sharat <> wrote:
    > Hi,
    > I am upgrading my project from VS2008 to VS2010. I am getting
    > following error while compiling my code.
    >
    > error C2065: 'istream_iterator' : undeclared identifier

    (...)
    >
    > Can anybody help how to resolve this?
    >
    > Thanks in advance.



    Looks like you are missing

    #include <iterator>

    in your code.

    This might help:

    http://blogs.msdn.com/b/vcblog/arch...ing-changes-in-visual-studio-2010-beta-1.aspx

    - Anand
    Anand Hariharan, Dec 1, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ddavis

    Competitive Upgrade Licensing

    ddavis, Dec 15, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    514
    Ed Kaim [MSFT]
    Dec 16, 2003
  2. Jag
    Replies:
    5
    Views:
    310
    Paul Bibbings
    Jul 17, 2010
  3. ElMariachi
    Replies:
    0
    Views:
    423
    ElMariachi
    Sep 17, 2010
  4. Replies:
    0
    Views:
    291
  5. Replies:
    5
    Views:
    284
    Dr.Ruud
    Jul 5, 2006
Loading...

Share This Page