I am curious to know how I can make my own library and use it for my C/C++ programs? I mean I want to make a library say "maths_example" which will have 2-3 files having some basic functions of maths. Then, I want to use that library for my programs which I will write after writing
#include "addition.h"
#include "substraction.h"
So that now, I can use my functions written in my own library. I just want to learn the things how we make library, how we compile all files in library simultaneously, how we use our own written functions in our written codes as we do for "printf()", "sqrt()" etc. Can anyone help me how to start with this? Can you give me links from where I should read about this and start learning this?
If you can give me some example, then it would be beneficial. Any help would be appreciated.