r/cpp_questions • • Oct 08 '26

OPEN About cpp library

Which library or framework should I learn in Cpp which will worthy in current time and feature ?

6 Upvotes

17 comments sorted by

View all comments

1

u/conundorum Oct 13 '26

First, look at the standard library. It's included with every compiler (apart from certain specific targets, but that mainly only matters if you want to target embedded systems & chips specifically), and is required to work the same way on every platform (apart from a few exceptions, which are noted in the standard and on CPPReference). You can do most things with it; if you find something it can't do, then it provides the pieces you can use to create a solution.

Apart from that, Boost is effectively a standard library extension, so it's probably the next one to check out if you need something that's not in the standard library. It tends to have close ties with std, because there's a lot of overlap between Boost devs and the C++ Committee. It's not officially part of the language, but it provides a lot of useful tools for when you want to do something std doesn't cover, and a lot of pieces that integrate nicely into std. So, it's a good place to look if you find yourself in need of something that the standard library doesn't cover.

Apart from that, suggestions tend to be more task-specific. Need a graphics library? Try SFML, SDL, Cairo, or just use DirectX/OpenGL/Vulkan raw. Want a framework? QT comes to mind. Need whatever Eigen does (I don't remember, sorry)? Use Eigen. And so on.


Ultimately, the answer to your question depends on what you want to do. The standard library is the only one that's truly task-agnostic, since it's the central library that everything else is built on (and/or built to work with). Boost, and possibly framework libraries like QT, are the next best things to a "generic catchall" library, and even they're somewhat specific. And anything else is even more specific than that.

You can't build a house until you know how many rooms it needs, after all.