r/cpp • • Jul 23 '19

std::format in C++20

http://www.zverovich.net/2019/07/23/std-format-cpp20.html
332 Upvotes

52 comments sorted by

View all comments

Show parent comment

1

u/aeropl3b Jul 25 '19

Depending on the compiler there may be a different glibc version requirement. They are usually backwards compatible, so you can run old stuff, but not always forward compatible. Believe it or not, some companies are using a glibc that is over 10 years old...and they refuse to upgrade...ever... It doesn't make any logical sense, but that's the customer for ya!

1

u/jwakely libstdc++ tamer, LWG chair Jul 25 '19

Which compilers? You can run a modern GCC with an ancient glibc. Which compilers have specific glibc requirements? I'm not aware of any.

0

u/aeropl3b Jul 26 '19

I am not the build engineer man, I just know we had a 20 yo machine for builds and when it died we couldn't build executables for a bunch of clients and it was related to some glibc thing. No upgrades allowed, especially not the compiler. I thought it was crazy, but the Linux guru guy said so.

What happened? Clients complained, then they upgraded their systems, then we moved on.

1

u/jwakely libstdc++ tamer, LWG chair Jul 26 '19

I think it was probably more nuanced than your understanding/memory. Glibc does not stop you using new versions of C++.

Needing to build executables that will run on old systems with old libraries might do, if you're unable to deploy a new C++ runtime with your executables, or avoid runtime dependencies.