When I compile a program which uses the STL using g++, how does the library get linked to my program? Dynamically or statically?
Statically sounds odd to me as that would mean every single C++ program which uses the STL would have to include it internally. On the other hand, dynamic linking sounds also odd to me as with all the OOP stuff I do not see how a library can be linked dynamically and also support different kinds of objects...
So what exactly is happening here?