Remix.run Logo
rstat1 2 days ago

>> Linux doesn’t have a single set of headers because programmers in the 80s didn’t know better.

I would argue that it does, but because its apparently illegal (obvious exaggeration alert) to package all the parts of a single entity together in one package, it just seems like it doesn't, where as on Windows there's a single package (the Windows SDK) that contains the majority of the relevant stuff.

I do however 100% agree with you on linking to shared libraries. The way Linux compilers handle that is fucking stupid.

forrestthewoods 2 days ago | parent [-]

I wish you were correct.

https://github.com/ziglang/zig/tree/master/lib/libc/include

There is one set of headers for Windows. One set for macOS. And a fucking kajillion different headers for Linux.

And of course glibc is a fucking dumpster fire that doesn’t let you trivially target and arbitrary version.

Grumble grumble

:(