I have two gcc compilers installed on my system, one is gcc 4.1.2 (default) and the other is gcc 4.4.4. How can I check the libc version used by gcc 4.4.4, because /lib/libc.so.6 shows the glibc used by gcc 4.1.2, since it is the default compiler.
I have two gcc compilers installed on my system, one is gcc 4.1.2 (default)
Share
Write a test program (name it for example
glibc-version.c):and compile it with the gcc-4.4 compiler:
When you execute
./glibc-versionthe used glibc version is shown.