What difference does /MD, /MT make when compiling object files?
I know that these are for linking with msvcrt or libcmt. So basically they determine which C library will be linked in at the linking stage. But do they affect the generated code in any way?
The reason I'm asking this because my code can be compiled as a .dll
or a .lib
. Currently, I build twice (one with /MD
and one with /MT
). Is it possible to optimize this, so I build object files just once (without /MT
or /MD
), and supply these options only at the linking stage?