why "using namespace std; " is not working?

why "using namespace std; " is not working?

Post by John Smit » Fri, 18 Nov 2005 09:43:43


What is needed for "using namespace std;" to work? I'm trying to
compile a program and getting this error message:

error C2061: syntax error : identifier 'namespace'
 
 
 

why "using namespace std; " is not working?

Post by Ken Wilso » Sat, 03 Dec 2005 18:12:16

On Wed, 16 Nov 2005 19:43:43 -0500, John Smith < XXXX@XXXXX.COM >



For some reason the compiler thinks 'namespace' is an identifier. As
stated, it is probably a syntax error and I would guess it is actually
happening before you get to the word 'namespace'. That is just where
it has chosen to blow up on you. To analyze this further you would
have to provide an example of the actual code that is generating the
error.

Ken Wilson
Seeking viable employment in Victoria, BC