On some platforms like Microsoft Windows no need to link against the "Standard C Library" with -lc flag, But on some other platforms it requires linking, But on macOS/OSX though it's Unix-based we don't link with -lc while we need to link on Linux and BSDs...
That made me a bit confused when writing Cross-Platform C libraries, Where and When to/not to link against the "Standard C Library" with -lc flag?
And is linking just for Linux and BSDs? Or also some other Unix platforms requires linking?
#pragma comment(lib, "msvcrt.lib"). This get included in the .obj file so the linker can see what library to link.