how to generate multiple .dll given multiple .obj with cl

92 Views Asked by At

I know how dlls are generated using cl compiler. I first generate .obj and then generate .dll as follows

cl /c add.cpp  
link /DLL add.obj

My question is how can I generate multiple .dll given multiple .obj? I've tried the following two methods with no luck

link /DLL add.obj sub.obj
link /DLL /OUT:add.dll /OUT:sub.dll add.obj sub.obj
0

There are 0 best solutions below