共用方式為


編譯器錯誤 C2757

'symbol' :已有此名稱的符號存在,因此無法將此名稱當做命名空間名稱使用

目前編譯中用來作為命名空間標識碼的符號已在參考的元件中使用。

下列範例會產生 C2757:

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

然後

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

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