Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Upgrade to VC2010

Reply
Thread Tools

Upgrade to VC2010

 
 
sharat
Guest
Posts: n/a
 
      12-01-2011
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.
 
Reply With Quote
 
 
 
 
Juha Nieminen
Guest
Posts: n/a
 
      12-01-2011
sharat <(E-Mail Removed)> 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.
 
Reply With Quote
 
 
 
 
Anand Hariharan
Guest
Posts: n/a
 
      12-01-2011
On Dec 1, 5:42*am, sharat <(E-Mail Removed)> 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/archi...10-beta-1.aspx

- Anand
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in compiling the module in VC2010 llwaeva@gmail.com Python 0 07-20-2011 03:33 PM
Compiling SWIG Extensions With VC2008 and VC2010 Both Installed ElMariachi Python 0 09-17-2010 02:56 PM
Why this fails on Linux but works on VC2010 Jag C++ 5 07-17-2010 01:07 PM
Cisco 837 upgrade IOS upgrade gone wrong cisconewbie Hardware 5 10-05-2008 06:29 PM
Upgrade vs Upgrade - not a faq but maybe some answers. Comments and Corrections welcomed. Agent86 Windows 64bit 2 02-09-2007 08:16 PM



Advertisments