Edit

Share via


Compiler Error C2386

'symbol' : a symbol with this name already exists in the current scope

Remarks

You tried to create a namespace alias, but the name you chose already exists.

Example

The following example generates C2386:

// C2386.cpp
namespace A {
   int k;
}

int i;
namespace i = A;   // C2386, i already exists