header file which includes header signatures and implementation(using macro)
I found it’s really convenient, for people who use this library, just put it in /usr/include and import to source code directly without doing make, make install.
Why other libraries not doing like this way?
I meant why not just distribute it in a single header file instead many c files and header files. It’s common to failed to compile by its own.
cause you can't always do that, also it adds an overhead during the compilation
https://stackoverflow.com/questions/1033898/why-do-you-have-to-link-the-math-library-in-c look at the answer to this question and the comments to it
Обсуждают сегодня