what does MD , LD etc stands for?
In c++ compiling, there is MD, MT and LD. MT is obviously multi-thread, what about开发者_运维技巧 others?
MD: use Multithread DLL Library
MT: use Multithread, statically-linked library
LD: Create a DLL
See this MSDN link for more info
The command-line options for CL.EXE are all explained here. For your specific options:
- /MD Creates a multithreaded DLL using MSVCRT.lib.
- /MT Creates a multithreaded executable file using LIBCMT.lib.
- /LD Creates a dynamic-link library.
http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=vs.80).aspx
Pretty complete and informative link regarding compilation flags.
精彩评论