查看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;

}

posted @ 2017-11-20 15:13  timwind  阅读(1379)  评论(0)    收藏  举报