Reusable Library Switch Library Macro(s) Defined
Single Threaded | /ML | LIBC | (none) | Win32 Console App/Static Lib (No MFC) Obsolete since VC2003 |
Debug Single MultiThread | /MLd | LIBCD | _DEBUG | Win32 Console App/Static Lib (No MFC) Obsolete since VC2003 |
Static MultiThread (Copy static lib to exe) | /MT | LIBCMT | _MT | Win32 DLL(no MFC) |
Debug Static Threaded | /MTd | LIBCMTD | _DEBUG and MT | Win32 DLL(no MFC) |
Dynamic Link (DLL) ====> Best | /MD | MSVCRT | _MT and _DLL | MFC App/DLL |
Debug Dynamic Link (DLL) | /MDd | MSVCRTD | _DEBUG, _MT, and _DLL | MFC App/DLL |
Import library linked with | DLLs used (Visual C++ 5.0|6.0) | DLLs used (Visual C++ .NET 2002|Visual C++ .NET 2003) | DLLs used (Visual C++ 2005|Visual C++ 2008 |
MSVCRT.LIB | MSVCRT.DLL | MSVCR7(0|1).DLL | MSVCR(80|90).DLL |
MSVCRTD.LIB | MSVCRTD.DLL | MSVCR7(0|1)D.DLL | MSVCR(80|90)D.DLL |
MSVCPRT.LIB | MSVCP(5|6)0.DLL | MSVCP7(0|1).DLL | MSVCP(80|90).DLL |
MSVCPRTD.LIB | MSVCP(5|6)0D.DLL | MSVCP7(0|1)D.DLL | MSVCP(80|90)D.DLL |
MSVCIRT.LIB | MSVCIRT.DLL | ||
MSVCIRTD.LIB | MSVCIRTD.DLL |