What are the basic conditions to use other people's library in
C/C++ coding?
Here I do not mean the
compiling step, but at the step of writing source code (from scratch in a way!).
When using
Standard C/C++ Library normally the header
(.h/hpp) and corresponding implementation (
.c/.cpp) files are included in the source code, then the multiple files are compiled.
I could not find a good tutorial/textbook on how to use other people's libraries except
this one so far.
For example,
gzlib is quite commonly used to handle compressed files, but I am blank how to use it in my own code. Also when people says
libXYZ is needed for his code I become lost too. I think I understand "a 'library' is a collection of compiled functions and class declarations". So, my question is:
What is the general condition (suggestions) to use an non-standard library from a third party?
At this moment, I restrict my question to GCC/G++ in GNU-Linux or Unix-based CLI, not any GUI tools or other GUI-based IDE etc.
Thanks a lot!