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.1.2
gcc 4.4.4
I doubt if you have more than one glibc installed in your system.But ldd -v should give you the glibc used.
ldd -v