When I usually use code (include headers) from 3rd party (non-standard) C++ libraries, a pre-built binary file is linked to (or included in) the target executable that repre
Most of it's all in the header files, because it's so heavily templated. Very little requires libstdc++.so (iostream, may be it, I think).
libstdc++.so
iostream