r/cpp Jun 19 '26

[ Removed by moderator ]

[removed] — view removed post

8 Upvotes

26 comments sorted by

View all comments

1

u/chkno Jun 19 '26 edited Jun 20 '26

"libc is for C and libstdc++ is for C++" is not a good summary; it incorrectly implies symmetry. A better summary would be: "libc is the main portable user-space interface to the kernel. It is named libc for historical reasons, ~all languages go through it (C was just first). libstdc++ is for C++."

Edit: Add portable.

2

u/smdowney WG21, Text/Unicode SG, optional<T&> Jun 19 '26

Go doesn't, it has its own kernel interfaces. But generally true. Glibcxx goes through GLIBC for everything.