链接器工具错误 LNK1302

只支持链接安全的 .netmodule;无法链接文件 .netmodule

用户尝试调用 MSIL 链接时将一个 .netmodule(使用 /LN 编译)传递给了链接器。 如果使用 /clr:safe 编译 C++ 模块,则该模块对 MSIL 链接有效

若要更正此错误,请使用 /clr:safe 编译以启用 MSIL 链接,或将 /clr 或 /clr:pure .obj 文件传递给链接器而不是模块

有关详细信息,请参阅