Reputation: 2830
I really like using header-only libraries, as they are really easy to use (no linker issues or having to compile the library separately). For example most of the Boost library is header-only. But then again there are some parts, like boost::python, which requires to be build before. Is this a design choice or a technical necessity?
I gave Boost as an example but would appreciate a more general answer if possible.
Upvotes: 3
Views: 365
Reputation: 7292
In favor of header only:
Against header only:
Upvotes: 1
Reputation:
The original reason to use compiled libraries is to spare compilation time. Libraries can be big. They can be huge.
Another argument is that they keep the source code apart. There is still a good deal of the universe which is not open-sourced.
Upvotes: 7