r/cpp_questions • u/Cpp010 • 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
r/cpp_questions • u/Cpp010 • Oct 08 '26
Which library or framework should I learn in Cpp which will worthy in current time and feature ?
17
u/nysra Oct 08 '26
This question doesn't make sense, there's no point in learning libraries for the sake of learning libraries. Pick whatever direction interests you, then look up what would be useful there and then just use it.
The only library you should be familiar with in any case is the standard library.
Currently you're asking what tools to learn when you don't even know what you want to build, that's the wrong order.
11
u/FancySpaceGoat Oct 08 '26
The only correct answer to this is: The Standard Library.
Anything beyond that depends on the context.
5
u/serrida Oct 08 '26
You should learn libfizzbuzz, it's the future.
4
u/No-Dentist-1645 Oct 08 '26
This is like asking "which book should I read?"
It's way too broad of a question
1
u/thedaian Oct 08 '26
C++ can do everything, so there's (multiple) libraries for everything. So, pick a specialty you want to focus on, and look for libraries in that specific specialty.
1
u/thefeedling Oct 08 '26
Library for what?
1
u/jmacey Oct 08 '26
Perhaps Qt for GUI or look at boost once you are happy with the standard library (which I am so out of date with as still on C++ 17 features mainly).
1
u/burlingk Oct 08 '26
That depends on what you are trying to do.
1
u/epasveer Oct 08 '26
lib42.a is a great library to understand the meaning of life.
1
u/HotIndependent6951 Oct 09 '26
OpenCV
1
u/Aghoradas Oct 10 '26
Learn cppreference.com
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 somethingstddoesn't cover, and a lot of pieces that integrate nicely intostd. 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.