Export (0) Print
Expand All
Expand Minimize

Compiler Error C2757

'symbol' : a symbol with this name already exists and therefore this name cannot be used as a namespace name

A symbol used in the current compilation as a namespace identifier is already being used in a referenced assembly.

The following sample generates C2757:

// t1.cpp, compile with /clr /LD
#using <mscorlib.dll>
public __gc class Nes 
{
};

// t2.cpp, compile with /clr
#using <t1.dll>
#using <mscorlib.dll>

namespace Nes    // C2757
{
   public __gc class X 
   {
   };
}
int main()
{
}
Show:
© 2015 Microsoft