For building a static library
, is the static C runtime statically linked at compile time (of the library) or at final EXE compile time?
Asked
Active
Viewed 509 times
0

unixman83
- 9,421
- 10
- 68
- 102
-
1Nothing is linked at compile time. The CRT doesn't get linked until you link the final .exe or .dll – Hans Passant Mar 06 '12 at 12:15
1 Answers
0
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)

unixman83
- 9,421
- 10
- 68
- 102