Compilerfehler C2757

'Symbol': Dieser Name kann nicht als Namespacename verwendet werden, da bereits ein Symbol mit diesem Namen vorhanden ist

Ein in der aktuellen Kompilierung als Namespacebezeichner verwendetes Symbol wird bereits in einer Assembly verwendet, auf die verwiesen wird.

Im folgenden Beispiel wird C2757 generiert:

// C2757a.cpp
// compile with: /clr /LD
public ref class Nes {};

und anschließend

// C2757b.cpp
// compile with: /clr /c
#using <C2757a.dll>

namespace Nes {    // C2757
// try the following line instead
// namespace Nes2 {
   public ref class X {};
}

Im folgenden Beispiel wird C2757 generiert:

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

und anschließend

// C2757d.cpp
// compile with: /clr:oldSyntax /c
#using <C2757c.dll>
#using <mscorlib.dll>

namespace Nes {    // C2757
// try the following line instead
// namespace Nes2 {
   public __gc class X {};
}