I\'ve just migrated from VS2005 to VS2010 and it fails to compile a simple program.
#include
using std::cout;
using std::endl;
int main()
{
I have no idea why this worked but I was getting this error and installing Visual Studio Power Commands solved this for me. This extension adds the Configuration Properties -> VC++ Directories that allows you to directly modify the ExecutableDirectories macro, it might have something to do with that.