How does C++ make sub-libraries?

I would like to learn how C++ makes sub-libraries.
Something like what is depicted in this diagram:
http://www.cplusplus.com/img/iostream.gif

Where do I start to learn this?

Thank you.
Have you learned classes?
http://www.cplusplus.com/doc/tutorial/classes/

Each of the boxes in that diagram is a class (or an instance of a class in the case of cin, cout, cerr).


First, make sure that you understand ODR and linkage
http://en.cppreference.com/w/cpp/language/definition
http://en.cppreference.com/w/cpp/language/storage_duration


The build mechanism is implementation specific.

A Tutorial revealed via a web search:
http://www.bogotobogo.com/cplusplus/libraries.php

(For the record: I do not agree with the 'whenever possible' in "Use dynamic libraries instead of static libraries whenever possible!")
I use classes. Sorry I didn't take a closer look at the diagram before posting.

I was looking for a way to group sets of classes.
Maybe a class prefix naming convention is all I need; that's what the stream library in the diagram uses.

Thanks for your suggestions; it got me thinking.
Last edited on
Topic archived. No new replies allowed.