Return to Level1Techs.com

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


#1

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?


#2

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


#3

musl is MIT licensed.

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


#4

There’s a very nice curated list on github


#5

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


#6

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.

From: https://en.wikipedia.org/wiki/Clang

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.

From: https://en.wikipedia.org/wiki/University_of_Illinois/NCSA_Open_Source_License

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


#7

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.

Thanks!