The resulting directory structure should look like this:Ĥ. This will contain our C++Builder-specific project files. Create a directory inside the extract folder called cbuilder. This has the added advantage that you can customize the build to suit your use.ģ.
SQLiteCpp supports the CMake build system, so we could use that to build our libraries with C++Builder, but it’s often more interesting and direct to just create the projects yourself. Download the latest release and extract it into a folder Setting up the Projects SQLiteCpp is hosted on Github and the repository includes all the files necessary to compile into your application.Ģ. We’ll use SQLiteCpp to create a simple application that stores and retrieves some data inside a simple console application in C++Builder. Sqlite is used in many different applications ranging from embedded projects to mainstream applications as an easy-to use integrated database for storing, querying and retrieving data of many different types. SQLiteCpp is a C++ RAII wrapper around the sqlite database C library, providing an excellent C++ interface to this almost universal portable relational database library. In this blog post, we’ll explore what it takes to get a fairly common C++ library, SQLiteCpp, working in a C++Builder project.
There are always some tricks and tweaks one must do to use any library in your projects, but in comparison to what was necessary before, it’s dead easy. This doesn’t mean to say that it’s trivial. While the classic compiler often has issues with modern C++ syntax, the CLANG compiler is one of the most standards compliant C++ compilers available, and as such, opens up the vast universe of C++ libraries to your C++Builder projects. Thankfully, we’ve come a long way since those days and C++ compiler now have a substantial level of compatibility with each other.Ĭ++Builder’s use of CLANG is no exception to this. A project built with GCC would have trouble compiling on VC++, and a project built with VC++ would have trouble compiling on BCC, etc. Basically, there is a C++ library for anything, and if there isn’t, there is definitely a C library for it.īack in the day, it was generally a challenge to integrate different libraries into C++ projects due to the variances in compatibility between different C++ compilers. One of the many big advantages to using C++ for applications and projects is the access one has to the vast library of C++ libraries and frameworks available.