cl /c prog.c compiles a source file (prog.c) and creates an object file from it, but no linking will be done to create an executable or a DLL. .obj. In order to specify a non-default name for the object file to be created, the /Fo option needs to be used.