The remainder of the batch file compiles and links the model equations to create the DLL.
CL /O2 /c /MP /bigobj /MT /DDBLPREC /DWIN32 /DWIN64 @mdl_files.txt
This line compiles the generated C. mdl_files.txt is a response file naming the files to compile, written by Vensim alongside them; reading the list avoids picking up a file left behind by a previous, larger model. /MP compiles them in parallel. If there is an error, or if mdl_000.obj was not created, the batch file issues an error message.
LINK /DLL /OUT:%3.dll /def:%1sim.def @mdl_objs.txt /MACHINE:X64
This line links the object files to create the DLL. mdl_objs.txt names them, because LINK accepts a response file but will not expand a wildcard. If there is an error it is reported.
These commands will work for Microsoft C compilers. If you are using a different compiler you will need to adjust your command lines appropriately.