Static Libraries and the statically-linked MSVC++

2019-09-14 18:17发布

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条回答
倾城 Initia
2楼-- · 2019-09-14 18:21

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)

查看更多
登录 后发表回答