Linking to static lib with managed components

自闭症网瘾萝莉.ら 提交于 2019-12-02 02:13:33

A static .lib is not a valid target option for managed code. There is no implemented mechanism to get the all-important metadata associated with managed types the same kind of treatment as code. It cannot be carved up in bits in pieces and glued together again. The MSFT team probably considered it but got scared away by the massive changes required to the .obj file format. That's a guess. A good error message would have been nice. That's a fact.

You must select a DLL as the target. At runtime, the JIT compiler performs the same function as the linker, it only pulls code from the DLL assembly that is actually used by the client.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!