Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++NewsRAD Studio

Open Source C++ Libraries in C++Builder 10.4.2

C++ has a wide ecosystem. One of our key goals with C++Builder is to ensure you can take advantage of the libraries other C++ developers write. With each release we’ve been working on the RTL and STL to ensure it is of a high quality and has great compatibility – exactly what you need if you’re upgrading projects, or you want to pull in C++ source code from a library online.

One great demonstration of this is the increasing number of (often complex) open source C++ libraries we’re making available in GetIt, our package manager.

10.4.2 has five new libraries available, making up fifteen open-source libraries in total – steadily increasing with each release. And these are amazing libraries.

  • Microsoft C++ Core Guidelines Support Library
    Image of fifteen open source C++ libraries in GetIt in C++Builder 10.4.2 (using the dark style)

    Many open source C++ libraries are available in 10.4.2! Click to expand.

    The C++ standards committee maintains its recommendation for how to use modern C++ effectively – the core guidelines. This library, written by Microsoft, contains a set of types and methods that help you write C++ code using those guidelines. It includes items like span, based on std::span but with bounds checking; not_null, forcing a smart pointer to never hold null values; precondition and postcondition assertions (expects and ensures); stack and heap arrays; and much more – these are just a few that I personally find useful.
    You can read more about the useful methods and types in GSL readme… and now you can use these in C++Builder!

  • Google Test
    We are often asked about test frameworks for C++Builder. We recommend DUnit, which supports C++, and Boost also includes Boost::test. However, Google Test is very well-known and includes the Google Mocks framework for object mocking.
    This is a complex library, and not only is it useful for you to have in GetIt, including it is a clear demonstration of the quality of the 10.4.2 release.
  • xtl
    Xtl contains many useful containers and algorithms used by the xtensor framework (one we’re working on) often used in finance – in fact, it is part of the xtensor quant stack. If you’re looking for high-performance C++, this is a great start.
  • ACE/TAO: cross-platform CORBA messaging library
    ACE/TAO is one of the largest and most complex libraries — and also one that many customers ask us about. Over the past year, we’ve done a significant amount of work focusing specifically on this library. Its inclusion is a clear demonstration of the compatibility that 10.4.2 gives you. We also expect that many C++Builder users will want to use ACE/TAO, perhaps to upgrade projects from several versions ago. We’re very happy to have it on GetIt!
  • {fmt} Safe and very fast formatting for C++
    C standard IO and C++ streams are famous for being difficult to use and often unsafe. {fmt} is a very popular alternative with elegant syntax, compile-time errors, strong testing, and excellent performance. Here are some code snippets taken from their readme:

    which prints:

    Or an example of passing the wrong type, which may have bitten you in your code before:

    This gives a compile-time error.
    Check out the readme here: it has impressive code samples and benchmarks. This library is pending some minor final work, but is coming soon for you to use in C++Builder!

These key, useful open source libraries give immense value to your projects. I personally am especially excited to see ACE/TAO (often requested), the Guidelines Support Library, and {fmt}. Remember that you too can add any open source C++ library to your code with C++Builder: we’ve worked hard on compatibility and quality to make sure you can use whatever code you need.

Of course, that’s not all! GetIt also includes Boost (classic, Win32 clang, Win64 clang), EasyBMP, Eigen linear algebra and math framework, the Expat and TinyXML XML parsers, libsimdpp (fast math), NemaTode (NMEA and GPS), SMHasher (hash functions) and SDL2 (great for writing games!)

These libraries are all open source and you can find our repository with them here, on Assembla.

Overview

C++Builder has had steady work on compatibility and robustness to ensure your code works well when you upgrade, and that you can use external C++ code easily – a great benefit for your software. 10.4.2 shows the work well, with the addition of some both really useful and technically complex libraries that demonstrate the improvements this release. We hope the libraries will be beneficial to your projects! And even apart from these libraries, upgrade to 10.4.2 to make use of the improved quality for your software, as well as some of the other improvements this release – linker memory, code completion, and more.


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

About author

David is an Australian developer, currently living in far-north Europe. He is the senior product manager for C++ at Idera, looking after C++Builder and Visual Assist.
Related posts
C++Delphi

Easily Deploy RAD Server With Windows And Linux Installers

CodeDelphiRAD Studio

Using Tabbed Maps Visualization In A Windows App is Easy!

Delphi

The "Awesome Pascal" Package Contains Amazing Delphi, FreePascal And Other Pascal Frameworks, Libraries And Resources

C++

High-Performance C++ NMEA Parser GPS Interface

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES