4 ms·
I can (in fact, must when using MSVC) statically link kernel32.lib on Windows as well. It's not a C runtime/standard library, of course, but who ties their OS's
by Joker_vD 4mo ago
I can (in fact, must when using MSVC) statically link kernel32.lib on Windows as well. It's not a C runtime/standard library, of course, but who ties their OS's user-level API to a particular implementation of a standard library of some random programming language anyhow?
- inigyou 4mo agokernel32.lib is an "import library" for kernel32.dll. This is a windows toolchain concept. The import library contains the placeholder references to the DLL loaded at runtime. If you actually statically linked kernel32.dll somehow it'll break on future windows versions. kernel32 doesn't contain any syscalls anyway since they're all in ntdll.