This section assumes that you've read the tutorial, so in case you haven't, you should have a look at it.

Here you'll find several examples of simple applications you can create using libtins. All of them are on libtins repository and/or latest release.

Keep in mind that many of these examples use C++11 features and threads, therefore you should use the appropriate flags on your compiler to enable them. For GCC compatible compilers(such as clang), the following line should work for every example:

g++ example.cpp -o example -O3 -std=c++11 -lpthread -ltins

Since version 3.1, it is easier to compile all of the examples. Once you have created the build directory and compiled the library, just execute the following command to do so:

make examples

The compiled examples will be located in the "examples" directory, inside the build location.

Here is the list of examples: