When compiling your own version of the Intention Repeater, either on Linux or Windows, and possibly Mac too,
if you use the flags to include libraries, it will run on other computers with the same OS, and not just that machine you
compiled it on. The -O3 is the letter "O" and not the number "zero". It indicates to do the highest level of optimization to make it run the fastest.
Example:
g++ .\intention_repeater_max.cpp -O3 -o .\intention_repeater_max.exe -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic -static-libgcc
or
clang++ .\intention_repeater_max.cpp -O3 -o .\intention_repeater_max.exe -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic -static-libgcc
The choice of compiler is personal. g++ runs Repeater faster, but I think clang++ has a cooler name. And g++ is only like a bit faster.
To format your code, I highly recommend the clang-format utility.
You can read about their styling options from their documentation here:
clang.llvm.org/docs/ClangFormatStyleOptions.htmlReden, can you verify if clang++ supports these libraries too, because I may have tried them only with g++. I am on my temporary Raspberry Pi 3 and waiting on the 4 to get clang and test further.
If you compile without the libraries, it will be a smaller file. It may run faster without the libraries, so you'll have to check.