Kompilatorfel C2757

"symbol" : en symbol med det här namnet finns redan och därför kan det här namnet inte användas som namnområdesnamn

Anmärkningar

En symbol som används i den aktuella kompileringen som namnområdesidentifierare används redan i en refererad sammansättning.

Exempel

I följande exempel genereras C2757:

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

Och sen,

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

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