查看glibc版本
$ldd --version
ldd (GNU libc) 2.12
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
#include <stdio.h>
#include <gnu/libc-version.h>
int main(void)
{
puts(gnu_get_libc_version ());
return 0;
}
浙公网安备 33010602011771号