赞
踩
一、运行时库
程序运行时不可缺少的库就是运行时库(或者叫运行期库,英文名称run-time library),通常以静态库或者动态库的形式呈现。比如C运行时库( C run-time library ),如果C语言编写的可执行程序没有包含C运行时库,该程序的main函数就不会被调用,从而程序无法运行。 C++ 世界里,有另外一个概念:Standard C++ Library,它包括了上面所说的 C run-time library 和 STL。包含 C run-time library 的原因很明显,C++ 是 C 的超集,没有理由再重新来一个 C++ run-time library. VC针对C++ 加入的Standard C++ Library主要包括:LIBCP.LIB, LIBCPMT.LIB和 MSVCPRT.LIB。
二、VC运行时库的类别
Reusable Library | Switch | Library | Macro(s) Defined |
---|---|---|---|
Single Threaded | /ML | LIBC | (none) |
Static MultiThread | /MT | LIBCMT | _MT |
Dynamic Link (DLL) | /MD | MSVCRT | _MT and _DLL |
Debug Single Threaded | /MLd | LIBCD | _DEBUG |
Debug Static MultiThread | /MTd | LIBCMTD | _DEBUG and _MT |
Debug Dynamic Link (DLL) | /MDd | MSVCRTD | _DEBUG, _MT, and _DLL |
详细信息参考:http://blog.csdn.net/wqvbjhc/article/details/6612099
详细参考2:http://blog.chinaunix.net/uid-17102734-id-2830125.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。