thumbs up happy employees binary diversity motivated staff happy people by peopleimages getty

12 top-notch libraries for C++ programming

C++ is a standard-objective techniques programming language that is now extra than 40 years aged, acquiring been intended in 1979. Considerably from losing steam, C++ continue to ranks around the prime of a number of programming language recognition indexes.

Smoothing the path to C++ use is wide support for the language among the makers of IDEs, editors, compilers, exam frameworks, code excellent, and other applications. Software developers also have at their disposal numerous great libraries to aid with creating C++ applications. Below are 12 that C++ developers rely on. 

Lively Template Library

From Microsoft, Lively Template Library (ATL) is a established of C++ classes for building COM (Common Item Design) objects, with assist for COM options these types of as dual interfaces, regular COM enumerator interfaces, relationship factors, and ActiveX controls. Available with the Visual Studio IDE, ATL can be applied to construct one-threaded objects, apartment-model objects, absolutely free-threaded model objects, or both cost-free-threaded and condominium-product objects.

Asio C++ library

The Asio C++ library is used for community and lower-amount I/O programming, supplying a consistent asynchronous design. Delivering primary constructing blocks for concurrency, C++ networking, and other types of I/O, Asio has been utilized in programs ranging from smartphone apps and video games to highly interactive websites and true-time transaction programs. Projects using Asio incorporate the WebSocketPP library and the DDT3 remote debugger for the Lua language. Asio is readily available as totally free open resource beneath the Enhance Application License, and supported on Linux, Home windows, MacOS, and FreeBSD.


Enhance provides no cost, peer-reviewed moveable C++ source libraries, accessible from, that work with the C++ common library. Strengthen libraries are supposed to be utilised across a spectrum of applications. Amid the assortment are libraries for JSON, math, multi-index, file program, and geometry. Raise performs on most modern day operating systems such as Linux, Unix, and Home windows. Linux and Unix distributions these types of as Debian, Fedora, and NetBSD by now incorporate pre-built Raise packages.


Cinder is an open source library for “creative coding” in C++. Beneficial for apps these kinds of as audio, computational geometry, graphics, and movie, Cinder supports platform-indigenous windowing and party-dealing with, along with I/O abstraction, and has a developed-in API for XML and JSON parsing. Designed all around idiomatic C++ 11 functions these as shared_ptr, the library ships with various samples. Cinder supports MacOS, iOS, Linux, Home windows, and Windows UWP.


Eigen is a C++ template library for linear algebra, such as matrices, vectors, numerical solvers, and related algorithms. All matrix dimensions are supported, from compact, set matrices to arbitrarily significant, dense matrices. Algorithms are chosen for reliability. All common numeric types are supported. For speed, Eigen options expression templates to intelligently eliminate temporaries and empower lazy evaluation. Freely available below the Mozilla Public License 2 and downloadable from the Eigen job web page, Eigen has been fitted with an API explained by proponents as expressive and thoroughly clean and normal to C++ programmers. The check suite for Eigen has been operate in opposition to many compilers to guarantee trustworthiness.


FloatX, or Float Extended, is a header-only library for reduced-precision, floating point form emulation. Even though natively appropriate with C++ compilers, FloatX can be named by other languages such as Python or Fortran. Floating issue sorts are prolonged outside of the indigenous solitary and double precision kinds. Template sorts are provided that let the user to pick the quantity of bits utilized for the exponent as properly as significant parts of the floating position quantity. FloatX is dependent on the strategy of the FlexFloat library for emulating lessened-precision floating varieties, but implements a superset of FlexFloat performance in C and gives C++ wrappers. FloatX emerged from the Open Transprecision Computing initiative. It is out there free of charge less than the Apache License 2.. 


OpenCV, or Open up Supply Laptop or computer Vision Library, is a personal computer eyesight and equipment studying library created natively in C++, and accessible under an Apache 2 license. OpenCV was developed to provide widespread infrastructure for computer system eyesight apps and speed up the use of equipment perception in industrial products and solutions. Additional than 2,500 optimized algorithms for deal with recognition, object detection, object classification, 3D product extraction, graphic look for, and a great deal much more, OpenCV has amassed a person group of extra than 47,000 individuals. Available from the OpenCV job web page, the library offers C++, Java, Python, and Matlab interfaces and supports Home windows, Linux, Android, and MacOS. CUDA and OpenCL interfaces are in growth.

Poco C++ Libraries

Intended to simplify C++ development, the Poco (Portable Factors) C++ Libraries are cross-system C++ libraries for constructing World-wide-web and network applications to operate on methods ranging from desktops and servers to cellular and IoT gadgets. The libraries also can be utilized to construct microservices with Relaxation APIs for device understanding or data analytics. The Poco libraries are comparable in strategy to the Java Class Library, Microsoft’s .Net Framework, or Apple Cocoa.

Developers can use Poco libraries to establish application servers in C++ that communicate to SQL databases, Redis, or MongoDB, or to build program for IoT devices that discuss to cloud again-finishes. Among the capabilities of the libraries are a cache framework, HTML variety managing, an FTP shopper for transferring information, and an HTTP server and client. The Poco libraries are obtainable free of charge below the Raise Program License and downloadable from GitHub


Velox is an embeddable, vectorized execution library for OLAP techniques. The library is intended to improve information processing techniques and question engines. The undertaking was begun as an interior engineering venture at Fb in 2020 and then open up sourced. In widespread utilization scenarios, Velox takes a entirely optimized question plan as input and performs the explained computation. Parts include a higher-degree typing procedure, a columnar memory module, perform packages, and network serializers. Velox is obtainable on GitHub in the Facebook Incubator repo.

Home windows Template Library

Initially from Microsoft, the Home windows Template Library (WTL) is (considering the fact that 2004) an open resource library for constructing light-weight Windows purposes and UI elements. Positioned as an different to the Microsoft Basis Classes toolkit, WTL extends ATL and presents a established of courses for controls, dialogs, body home windows, and GDI objects.


Wt is a internet GUI library in contemporary C++ that allows developers to create interactive internet UIs with widgets, with out possessing to produce JavaScript. A server-aspect resolution, Wt does request managing and page rendering, providing constructed-in protection, PDF rendering, a 2D and 3D portray procedure, an item-relational mapping library, a charting library, and an authentication framework. The main library is open up supply, furnishing a hybrid one-webpage framework that can be deployed on Linux, Unix, or Home windows.

Developed by application engineering organization Emweb, Wt is appropriate with HTML5 and HTML4 browsers as nicely as with plain HTML consumer brokers. And Wt can integrate with 3rd-social gathering JavaScript libraries. With Wt, an software is outlined as a hierarchy of widgets—ranging from generic widgets this sort of as thrust buttons to specialised widgets these as an full website widget. The widget tree is rendered as HTML/JavaScript in the browser. Wt can be downloaded from the venture webpage. Both open supply and commercial use phrases are available. 


Yocto/GL is a collection of small C++17 libraries for making physically-primarily based graphics algorithms. It is published in a facts-oriented model for ease of growth, and split into smaller libraries to make code navigation less complicated. Details is stored in easy structs and accessed with free of charge capabilities or immediately.

Yocto/GL contains code from the PCG random quantity generator, improve hash_combine, and exterior libraries from the public domain or that are incorporated with their very own licenses. The builders of Yocto/GL desire a purposeful technique somewhat than an item-oriented one, favoring absolutely free capabilities to course approaches. Capabilities and information are defined in sibling namespaces contained in the yocto namespace.

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

Copyright © 2022 IDG Communications, Inc.

Leave a Reply