When building an application using g++, I am not explicitly passing the libc library as a library to link against in the same way you would do it for other libraries (like passing -lpthread for example).
I know that libc has the libc.so.6 so name, but I am aware that this is not actually a library but something like a pointer to another version of libc (such as libc-2.15.so).
If I had multiple versions of libc on my computer, how can I tell which one actually gets used using libc.so.6?
testendianrequires GLIBC_2.3 or GLIBC_2.2.5? – bonanza Jul 06 '16 at 06:55ld-linux-x86-64was build with GLIBC_2.3. So both in a way. But take that with a grain of salt, as I didn't find a reference. – con-f-use Jul 06 '16 at 07:52warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking) – jpaugh Nov 22 '16 at 19:15