编译器错误 C3846
“symbol”:无法从“assembly2”导入符号:因为“symbol”已从另一个程序集“assembly1”导入
无法从引用的程序集导入符号,因为符号以前是从引用的程序集导入的。
示例
下面的示例生成 C3846:
// C3846a.cpp
// compile with: /LD /clr
public ref struct G
{
};
然后编译以下内容:
// C3846b.cpp
// compile with: /clr
#using "c3846a.dll"
#using "c3846a.obj" // C3846
int main()
{
}