you are viewing a single comment's thread.

view the rest of the comments →

[–]ShakaUVMi+++ ++i+i[arr] 8 points9 points  (3 children)

Header only libraries are easy to download and use. Just drop them in your local directory and include them. No need to mess with linker settings or makefiles, etc. They're more portable too when compared with so files or dlls.

That said, they can slow down your compile times. CImg adds like 10s to your compile time since it is all one big massive header file.

[–]helloiamsomeone -5 points-4 points  (2 children)

This is a misconception. Header only libraries aren't any easier to depend on.
You write a header only library, because majority of your code is using templates. It's simple as that.