4 ms·
The single-file approach is to simplify including the library in your project. Just copy the file and type #include "whatever.h". It's because C/C++ still does
by IshKebab 10y ago
The single-file approach is to simplify including the library in your project. Just copy the file and type #include "whatever.h".
It's because C/C++ still doesn't have a decent module system, nor a universally accepted library distribution system. You can still write the project as separate files and the concatenate them for distribution.
- aninteger 10y agoIt sorta does. It's just we use the packaging tools of the operating system (like apt-get and equivalent tools on other systems). That and pkg-config solves 99% of the problem on Unix-based systems. Windows on the other hand... Good luck.