“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
}