Static Libraries and the statically-linked MSVC++ runtime

*爱你&永不变心* 提交于 2019-12-25 03:23:47

问题


For building a static library, is the static C runtime statically linked at compile time (of the library) or at final EXE compile time?


回答1:


According to Hans, the CRT (C Runtime) is not linked while compiling a static LIB using MSVC. It is linked at final EXE compile time.

However, even though this is true. You still cannot mix C runtimes in static libraries. They all must use the same exact runtime (or the system runtime MSVCRT.dll)



来源:https://stackoverflow.com/questions/9578388/static-libraries-and-the-statically-linked-msvc-runtime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!