Provide the details of installed libraries for compiling applications. More information: https://www.freedesktop.org/wiki/Software/pkg-config/.
pkg-config --libs {{library1 library2 ...}}
pkg-config --cflags --libs {{library1 library2 ...}}
c++ example.cpp $(pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0) -o example