Hacker News new | ask | show | jobs
by pjmlp 689 days ago
As proven by musl versus glibc issues, that possibility is mostly theoric, with plenty of gotchas in practice.
2 comments

Which musl issues are to do with GCC? Alternate C libraries are common on Linux e.g. uclibc, dietlibc, bionic... Not to mention also the other OSs GCC runs on that don't use glibc. Of course, mixing C libraries between the main executable and libraries probably won't work.
As there are common people on forums searching for problems with their C code crashing and burning, because while those libraries conform to ISO C standard, their implementation defined semantics aren't the same.
musl and glibc are both compatible for the POSIX portion of the API they provide. GCC also has lots of GNU specific functions but so what?
Square peg into rectangular hole.

ISO C and POSIX have plenty of implementation defined behaviours.