I have a multi-boot system, I run Win XP (32 bit) most of the time, but I also have Win 7 Pro 64 bit. I don't have VC++ 2010 Express, but I have Visual Studio 2012 Express installed on Win 7 and was able to compile and run the example I posted before. I'm not sure what the issue is, but maybe you could switch to Visual Studio 2012 Express.
Last edited by rcgldr; 08-24-2013 at 04:47 AM.
it didn't seem to me a compiler ISSUE as it worked sometimes also but this time is STUCK
How strange. Definitely looks like missing includes.
Could you go to Project properties --> C/C++ and make sure "Precompiled headers" is off. Delete stdafx.h and stdafx.c if they're there in your project. Then do project -> Clean, then try rebuilding again?
I have vague memories of something like this happening to me once. I didn't have <<, but I did have trouble dereferencing a vector<string> iterator. I stared and stared and saw nothing wrong. Would have been msvc 2010 as well.
You're probably right - I don't have any reason to suspect it of causing trouble, but I saw stdafx.h in the first post and wanted to eliminate it -- better to be able to see what headers are getting included. Doesn't look like the later snippet even has it, and <string> certainly hasn't managed to climb above it.
Last edited by jeedi khan; 08-25-2013 at 03:04 AM.
You could try deleting everything but your source files and then create the project again, make sure to choose "empty project" in the process.
it works now ...thanks to ALL on this thread