Say my library is just a couple functions that neatly fit into 1 file and do not require any external dependencies. Is then there any advantage in compiling that library into an .o object file and distributing it that way rather than just providing it as a header file? I can't seem to think of any, though I'm just a beginner.
And if there is advantage in using an object file, is there any reason to package that single object file into an archive (.a), rather than distributing the object file by itself?