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
Thanks so much well detailed explanation
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!!!
Succinct 👌
The content is so clear and concise, thanks a lot
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 💚.
Good content thank
I understand static libraries now, thanks to you.
Thanks for this amazing article
Thank you for this amazing post.May you please do one for Dynamic libraires?
Awesome stuff
Concise and to the Point. Keep up the good work.
This article covers every important detail on static libraries and simplifies these concepts. Impressive material
Thank you for this. I really needed it for my project
I really learned and enjoyed a lot of ideas shared here thanks so much
This was really insightful. Thanks 👍
thanks …. it well explanatory
Nice 👍
Nice article bro, shows you are very good at what you do.
Thanks for the help, I understood in a Jiffy.
Great explanation. Just cleared my little confusion with ease. Thanks Dev.
Thank you. That was an amazing explanation.
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?
Thank you for this.
thanks
That is a very good and easy-to-understand explanation
Thank you!
Well explained
How I'd wish for all internet resources to be as instructionally detailed as this one.
What a well-detailed explanation!.
Thanks a lot.
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
ty maaaaan