GLIB : ERROR /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found

@ebassi , I’m trying to understand the problem a bit better. I tried to build an executable to print “Hello World!” to the console with the command

g++ -o source source.cpp

. But even that minimal program is causing the GLIBC version compatibility error.

I understand GLIBC is a collection of C library functions that provide low-level functionality to the operating system. But why is this minimal program causing the version compatibility issue?

As GLIBC is a wrapper on the Linux kernel for system calls, and I read “glibc does not “implement” system calls, kernel does it. But glibc provides the user land interface to the services provided by kernel so that user application can use a system call just like a ordinary function” does this mean even a very minimal c/c++ program will link with GLIBC? Even the one which will just return 0?

Please correct me if I misunderstood anything.

Thank You