C++ is
still very problematic in libraries. (Although I do see why some see it appealing in application code.)
I just went through all the issues reported by people wanting to use my small piece of C++ code, and issues seen by myself in setting up a development environment for a project using two C++ libraries (SFML and TGUI, particularly).
For a C library, it typically goes: include headers and link against a pre-compiled library object file (or copy a shared object file somewhere where it's found by the loader).
But C++ still has no standardized nor stable exception handling, name mangling rules, std::string ABI, etc., and I'm sure the list goes on. It does not only depend on the system, but also on the actual compiler version and which flags were used during compilation. And it's not about two or three options; the combinations are countless.
For SFML, for example, just downloading it pre-compiled is quite iffy:
https://www.sfml-dev.org/download/sfml/2.5.1/As they say, "The compiler versions have to match 100%!" and "It's recommended to use the SFML version from your package manager (if recent enough) or build from source to prevent incompatibilities." Yes, they give precompiled versions, but I can confirm their warnings about the problems are very real.
So it was a 20-hour job
for me to be able to get everything "play together" for a combined linux + windows cross-compilation environment. Earlier, it either worked out by luck (some people reported success on installing SFML and compiling our code, some reported they just can't do it with their skills and documentation in existence), or then you need to
compile all libraries from scratch ensuring ABI compatibility. I did the latter, but this basically prevents "novices" (however good at understanding programming and writing code) getting into the project; I just need to provide binaries. Which is, of course, what most people want anyway, but if you think about
open source community, then the only people who will jump in are some C++ "experts" who don't mind all the colossal hassle to be able to use C++.
I have never seen such colossal pain in any project using C libraries. The difference is about two orders of magnitude.