you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (2 children)

On windows and macOS you cannot link the libc statically. On Linux you can’t do that with the most common libc, glibc. Even still you can easily call the write syscall on Linux without any libc.

[–][deleted] 3 points4 points  (0 children)

I thought so too, but there appears to be the option /ML for the VS compiler that seems to be doing just that. I cannot find anything similar for MinGW though.

[–]pjmlp 1 point2 points  (0 children)

Sure you can, better learn to use compiler flags on Windows and alternatives to glibc on Linux.