cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How does C++ make sub-libraries?
How does C++ make sub-libraries?
Nov 7, 2014 at 2:18pm UTC
wolfv
(222)
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.
Nov 7, 2014 at 2:29pm UTC
AbstractionAnon
(6954)
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).
Nov 7, 2014 at 2:37pm UTC
JLBorges
(13770)
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!")
Nov 7, 2014 at 4:53pm UTC
wolfv
(222)
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
Nov 7, 2014 at 9:34pm UTC
Topic archived. No new replies allowed.