How to link the boost string algorithms library - which linker flags to use?

You do not need to link the boost::algorithm library. It is a header only library, hence you only need to #include its header files.

For examples, see