Yes. If you use precompiled headers with MSVC++, all the code before #include "stdafx.h"
is ignored. That's why your identifiers aren't found, the same would apply to std::cout.
A lot of information concerning precompiled headers (or Microsoft Visual C++ in general) can be found on MSDN, by the way.