Difference between revisions of "GNU C library"

From Teknologisk videncenter
Jump to: navigation, search
m (Links)
m (bash GLIBC Version=)
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 09:17, 21 December 2022

Checking which GNU C Library version

To check which GCLIB you are using run this small c program.

#include <stdio.h>
#include <gnu/libc-version.h>

int main(void) {
  printf("GNU C Library version is %s\n", gnu_get_libc_version());
  printf("GNU C Library release is %s\n", gnu_get_libc_release());
  return 0; 
}

// Example output from this command:
//    GNU C Library version is 2.28
//    GNU C Library release is stable

or this shell command

heth@mars:~/bin$ ldd --version
ldd (Ubuntu EGLIBC 2.19-0ubuntu6.6) 2.19

Links