Compiler Error C2386
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C2386

Error Message

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

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

The following sample generates C2386:

// C2386.cpp
namespace A {
   int k;

int i;
namespace i = A;   // C2386, i already exists
© 2016 Microsoft