Introduction
Before starting to talk about the subject matter, let us take a brief look at the compilation phases of a C program.
There...
For further actions, you may consider blocking this person and/or reporting abuse
Good content thank
Thanks for this amazing article
Thanks so much well detailed explanation
I read this in 2022, and came back for it in 2023.
That is to make you understand that this was really helpful, and also a well-detailed explanation.
Thank you 💚.
Succinct 👌
I understand static libraries now, thanks to you.
The content is so clear and concise, thanks a lot
Could you please say something about the content of the add.c and the mul.c, for a beginner like me, that is. Otherwise, great content here
As mentioned above, add.c and mul.c are files that contain a single function that makes the addition or the multiplication of two integer values. You can think of them as follow:
/* add.c */
int add(int a, int b) { return a + b; }
/* mul.c */
int mul(int a, int b) { return a * b; }
I hope this answers your question :)
I am a beginner too. But I found it the hard way, weldone!!!
I really learned and enjoyed a lot of ideas shared here thanks so much
Thank you for this. I really needed it for my project
Nice article bro, shows you are very good at what you do.
Thanks for the help, I understood in a Jiffy.
Nice 👍
Thank you. That was an amazing explanation.
Great explanation. Just cleared my little confusion with ease. Thanks Dev.
Concise and to the Point. Keep up the good work.
Awesome stuff
This article covers every important detail on static libraries and simplifies these concepts. Impressive material
Thank you for this amazing post.May you please do one for Dynamic libraires?
thanks …. it well explanatory
This was really insightful. Thanks 👍
I think it is worth noting that libraries are not part of the C language.
Which means that they are all implementation features and vary between compiler and system.
The description of libraries here seems to be for gcc libraries under linux?
Yes, you're right. The C libraries aren't part of the language.
It slipped my mind. Maybe I'll add it. Thanks for your feedback.
And yes I've used the GCC compiler on Linux. but the same principle applies to other platforms.
You're welcome.
As a beginner learning C programming, I found this article quite enlightening. It was direct and gave the necessary information needed to start practising making use of libraries straight away. Thank you.
great they give me a lot of materials on my course to understand the static libraries but in the end I understand nothing, I found your article on Google and it's really good, I get the idea and understand what to do, thanks
Succint, but, what is the difference between libname, and the module add.c and mul.c ?
Here you include "header.h", and without libname.a, it will also compile and work.
Could you give me more explanations, please?
Well explained, Thanks for the article
Thank you for this.
ty maaaaan
Could you please say something about the content of the header.h
இ௰இ
Very good explanation and useful guideline to those who found this web on purpose
ok you should be a professor! You do know how to make things clear and simple!! thank you
Well explained
thanks
What a well-detailed explanation!.
Thanks a lot.
That is a very good and easy-to-understand explanation
Thank you!
How I'd wish for all internet resources to be as instructionally detailed as this one.