|
|
|
|
|
by pjmlp
1706 days ago
|
|
In the meantime two big contenders raised up, vcpkg alongside NuGET from Microsoft (also does Mac and Linux), and conan. Personally I dislike conan, because package managers should be written in the language of the community they serve, but that is me. Thankfully, both support binary libraries. Then there are modules, which on Visual C++'s case are going along quite well. Anyone that bothers using header only libraries only has themselves to blame for waiting for builds, they are a plague from users that pretend C and C++ are scripting languages. |
|
Slow-compiling APIs can be made in any form, whether "header only" or not. C++ template APIs cannot be compiled separately and can cause long compile times for all transitively dependent translation units.
For example, stb_image.h is a single file that is 1 copy+paste from github away. It compiles quite quickly, and often you will need it alongside only a single .c file in your project, but anyway it's extremely easy to compile it separately. All you have to do is cut+paste the implementation part to a separate .c file.