Setup and Compiling


PawLIB is a static library which needs to be compiled before it can be used.


Complete building instructions can be found in

Environment and Dependencies

To build PawLIB, you must have the following installed on your system:

Build Configuration

If you use our libdeps repository, it is recommended that you clone it adjacent to the pawlib folder. In that scenario, you can skip this section, as the default configuration will work for you.

If you put libdeps somewhere else, or provide CPGF yourself, be sure to create a build configuration file.

To do this, make a copy of build.config.txt in the root of the PawLIB repository, and name it build.config. Optionally, you may replace “build” with any name, so long as the filename ends in .config.

Edit the file, and change the following section to point to the location of CPGF’s include and lib directories.


In that path, the variable ${CMAKE_HOME_DIRECTORY} refers to either the pawlib-source/ or pawlib-tester/ directories in the PawLIB repository, since the same configuration file is used in compiling both.

Save and close.

Compiling PawLIB

Make sure that CPGF is built. If you’re using libdeps, you can simply run make cpgf in that repository.

In the PawLIB repository, run make ready to build PawLIB as a static library.


If you experience any errors in compiling, we invite you to contact us. See Finding Support.

Linking to PawLIB

To use PawLIB in your C++ project, you will need to statically link to both it and CPGF.


Linking order is important in C++! You should link to PawLIB first, and then its dependencies (namely CPGF) second.

You can point your compiler and linker at the pawlib/include/ and pawlib/lib/ directories.

If you need help finding the paths for CPGF, refer to the path in the PawLIB build configuration (see Build Configuration). The include/ and lib/ directories should be in the path specified.

Using PawLIB

All #include commands follow the format #include "pawlib/HEADER.hpp", where HEADER.hpp is the header file you wish to include.

Building Tester

If you want to use the PawLIB tester application, you can build that as well. Once you’ve confirmed that PawLIB itself can build without errors, run make tester to build the tester.