I have seen the answer to my question heavily implied but have not seen it somewhere written, hence I am making these questions (just to be sure I am correct).
To use a shared library in a C/C++ program you need both the .h file and the .so file? (if I understand correctly, the compiler needs the .h file and the linker needs the .so file)
As a bonus question, is this true for static (.a) libraries?
Thanks in advance