On Linux when linking against a C++ library the whole program must be linked
drwxr-xr-x - cde