編譯器錯誤 C3414
'member' :無法定義匯入的成員函式
成員定義於程式代碼中,此程式代碼中也定義於參考的元件中。
下列範例會產生 C3414:
// C3414a2.cpp
// compile with: /clr /LD
public ref class MyClass {
public:
void Test(){}
};
然後:
// C3414b2.cpp
// compile with: /clr
#using <C3414a2.dll>
void MyClass::Test() { // C3414
}
System::Object::Object() { // C3414
}