Return to

Are there any good C "standard" libraries which allow you to compile and keep your code?


Any good C libraries which have a permissive license to compile code and not share the code? Specifically, libs which covers basic data structures and algorithms?

Basically, the two I have so far are the Standard C Lib with the BSD License and the glibc with the LGPL license. Any others that others have used?


GLib and APR are decent general purpose C libs. I’m sure there are many more.


musl is MIT licensed.

It’s used by default on Alpine Linux and Void.


There’s a very nice curated list on github


I believe this is why lots of people are using Clang.


Yes, it is. To expand on the situation:

It is designed to act as a drop-in replacement for the GNU Compiler Collection (GCC), supporting most of its compilation flags and unofficial language extensions.[6][7] Its contributors include Apple, Microsoft, Google, ARM, Sony, Intel and Advanced Micro Devices (AMD). It is open-source software,[8] with source code released under the University of Illinois/NCSA License, a permissive free software licence.


About the licence:

Source code under the NCSA license can be incorporated into proprietary products without the reciprocity requirements that copyleft free software licenses raise. The license is compatible with all versions of the GNU General Public License.


If you care to read more about licences n stuff this page is a good place to start.


Thanks! I may have asked this a bit early… I’m going to horse around with glibc because it’s really comprehensive, but once it starts to matter I’ll look into these.