July 25, 2024


Super Technology

12 top-notch libraries for C++ programming

C++ is a general-reason units programming language that is now much more than 40 many years outdated, acquiring been intended in 1979. Far from losing steam, C++ nevertheless ranks close to the major of many programming language recognition indexes.

Smoothing the path to C++ usage is wide assistance for the language among the the makers of IDEs, editors, compilers, check frameworks, code good quality, and other resources. Software package developers also have at their disposal a lot of excellent libraries to assist with constructing C++ apps. Here are 12 that C++ builders count on. 

Active Template Library

From Microsoft, Energetic Template Library (ATL) is a set of C++ courses for making COM (Popular Object Design) objects, with guidance for COM options these as twin interfaces, common COM enumerator interfaces, relationship points, and ActiveX controls. Out there with the Visible Studio IDE, ATL can be applied to build one-threaded objects, condominium-model objects, free of charge-threaded product objects, or equally free-threaded and condominium-design objects.

Asio C++ library

The Asio C++ library is made use of for community and reduced-degree I/O programming, giving a dependable asynchronous product. Offering fundamental setting up blocks for concurrency, C++ networking, and other types of I/O, Asio has been employed in programs ranging from smartphone apps and games to really interactive sites and actual-time transaction devices. Tasks utilizing Asio incorporate the WebSocketPP library and the DDT3 remote debugger for the Lua language. Asio is readily available as cost-free open up supply under the Boost Software package License, and supported on Linux, Home windows, MacOS, and FreeBSD.


Strengthen offers cost-free, peer-reviewed transportable C++ source libraries, available from improve.org, that perform with the C++ typical library. Strengthen libraries are intended to be applied across a spectrum of programs. Amongst the selection are libraries for JSON, math, multi-index, file method, and geometry. Boost operates on most modern-day working systems together with Linux, Unix, and Home windows. Linux and Unix distributions these types of as Debian, Fedora, and NetBSD now contain pre-built Raise packages.


Cinder is an open up source library for “creative coding” in C++. Valuable for programs this kind of as audio, computational geometry, graphics, and movie, Cinder supports platform-indigenous windowing and party-managing, alongside with I/O abstraction, and has a designed-in API for XML and JSON parsing. Intended all over idiomatic C++ 11 functions these types of as shared_ptr, the library ships with various samples. Cinder supports MacOS, iOS, Linux, Windows, and Windows UWP.


Eigen is a C++ template library for linear algebra, which includes matrices, vectors, numerical solvers, and related algorithms. All matrix measurements are supported, from tiny, fixed matrices to arbitrarily huge, dense matrices. Algorithms are picked for dependability. All standard numeric kinds are supported. For pace, Eigen capabilities expression templates to intelligently eliminate temporaries and permit lazy evaluation. Freely readily available below the Mozilla Community License 2 and downloadable from the Eigen project web page, Eigen has been equipped with an API explained by proponents as expressive and cleanse and purely natural to C++ programmers. The examination suite for Eigen has been run towards lots of compilers to guarantee reliability.


FloatX, or Float Prolonged, is a header-only library for reduced-precision, floating stage sort emulation. Even though natively appropriate with C++ compilers, FloatX can be called by other languages this kind of as Python or Fortran. Floating point types are prolonged outside of the indigenous single and double precision forms. Template sorts are presented that enable the person to pick the quantity of bits applied for the exponent as perfectly as considerable elements of the floating level variety. FloatX is centered on the notion of the FlexFloat library for emulating lowered-precision floating varieties, but implements a superset of FlexFloat performance in C and delivers C++ wrappers. FloatX emerged from the Open Transprecision Computing initiative. It is out there absolutely free less than the Apache License 2.. 


OpenCV, or Open up Resource Laptop or computer Vision Library, is a laptop vision and equipment studying library penned natively in C++, and offered below an Apache 2 license. OpenCV was created to offer widespread infrastructure for personal computer eyesight programs and speed up the use of device notion in commercial goods. Much more than 2,500 optimized algorithms for face recognition, object detection, object classification, 3D design extraction, image research, and a lot more, OpenCV has amassed a person neighborhood of additional than 47,000 individuals. Accessible from the OpenCV project site, the library supplies C++, Java, Python, and Matlab interfaces and supports Home windows, Linux, Android, and MacOS. CUDA and OpenCL interfaces are in improvement.

Poco C++ Libraries

Meant to simplify C++ development, the Poco (Portable Components) C++ Libraries are cross-platform C++ libraries for setting up Net and network programs to operate on programs ranging from desktops and servers to cell and IoT products. The libraries also can be used to make microservices with Relaxation APIs for equipment finding out or knowledge analytics. The Poco libraries are related in notion to the Java Class Library, Microsoft’s .Internet Framework, or Apple Cocoa.

Builders can use Poco libraries to create application servers in C++ that chat to SQL databases, Redis, or MongoDB, or to establish software for IoT gadgets that converse to cloud back-finishes. Among the the attributes of the libraries are a cache framework, HTML kind handling, an FTP client for transferring files, and an HTTP server and shopper. The Poco libraries are out there no cost beneath the Enhance Software License and downloadable from GitHub


Velox is an embeddable, vectorized execution library for OLAP systems. The library is supposed to improve knowledge processing units and question engines. The challenge was begun as an inner engineering job at Fb in 2020 and then open up sourced. In common use eventualities, Velox can take a thoroughly optimized query plan as input and performs the explained computation. Parts consist of a large-degree typing technique, a columnar memory module, operate deals, and community serializers. Velox is offered on GitHub in the Facebook Incubator repo.

Windows Template Library

Initially from Microsoft, the Home windows Template Library (WTL) is (because 2004) an open up resource library for making light-weight Windows purposes and UI elements. Positioned as an option to the Microsoft Basis Lessons toolkit, WTL extends ATL and gives a set of lessons for controls, dialogs, body windows, and GDI objects.


Wt is a net GUI library in present day C++ that enables builders to make interactive internet UIs with widgets, without the need of possessing to create JavaScript. A server-facet option, Wt does request handling and web site rendering, delivering crafted-in security, PDF rendering, a 2D and 3D portray procedure, an item-relational mapping library, a charting library, and an authentication framework. The core library is open supply, delivering a hybrid solitary-page framework that can be deployed on Linux, Unix, or Home windows.

Developed by program engineering business Emweb, Wt is compatible with HTML5 and HTML4 browsers as very well as with plain HTML consumer agents. And Wt can combine with third-celebration JavaScript libraries. With Wt, an software is defined as a hierarchy of widgets—ranging from generic widgets this sort of as force buttons to specialized widgets these kinds of as an full site widget. The widget tree is rendered as HTML/JavaScript in the browser. Wt can be downloaded from the job webpage. Equally open resource and professional use terms are obtainable. 


Yocto/GL is a selection of small C++17 libraries for setting up bodily-based graphics algorithms. It is written in a data-oriented fashion for relieve of advancement, and split into small libraries to make code navigation easier. Data is saved in very simple structs and accessed with absolutely free functions or instantly.

Yocto/GL includes code from the PCG random amount generator, strengthen hash_merge, and exterior libraries from the general public area or that are involved with their own licenses. The developers of Yocto/GL desire a functional method instead than an object-oriented a single, favoring cost-free features to course methods. Features and data are described in sibling namespaces contained in the yocto namespace.

Yocto/GL is produced underneath the MIT license and out there from GitHub. A C++17 compiler is essential.

Copyright © 2022 IDG Communications, Inc.