Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如何使用 cl 编译器生成 dll。我先生成.obj再生成.dll如下
cl /c add.cpp link /DLL add.obj
我的问题是如何在给定多个 .obj 的情况下生成多个 .dll?我试过以下两种方法都没有运气
link /DLL add.obj sub.obj link /DLL /OUT:add.dll /OUT:sub.dll add.obj sub.obj